The Prophet Muhammad (PBUH) migrated to Madinah to escape persecution in Makkah and establish an Islamic state. In Makkah, Muslims faced severe oppression, including boycotts and physical harm. Madinah offered a safer environment where Islam could flourish. The migration, known as Hijra, marks the beginning of the Islamic calendar. Upon arrival, the Prophet established treaties with local tribes, built mosques, and created a constitution for governance. This move symbolizes resilience and divine guidance in overcoming adversity.