Surviving much oppression, Mohammad and his followers begins to migrate to a neighboring town called Yathrib (also known as Medina), where the community accepted Islam. Thus the imprint/record of the "emigration". or "hijrah", and the emergence of the calendar. Once in Medina, Mohammad forms/establishes an Islamic state based upon the revelations and influential guidance originating from God. In the course of time, he converts and encourages other tribes/clans to Islam.
Image sourced from Wikipedia