What was the goal of the Hijra

The goal of the Hijra, the migration of Prophet Muhammad and his followers from Mecca to Medina in 622 AD, was to escape persecution and to establish a new community based on the principles of Islam. It was a turning point in Islamic history and marked the beginning of the Islamic calendar. The Hijra was also significant in establishing the political and social foundation of the Islamic community and uniting various tribes under the leadership of the Prophet.