What was the goal of the Hijra?

The goal of the Hijra was for Prophet Muhammad and his followers to move from Mecca to Medina in order to escape persecution and establish a new community where they could practice their religion without hindrance. This migration marked the beginning of the Islamic calendar and is seen as a turning point in the history of Islam.