Medina is known as Madinat al-Nabi (City of the Prophet) because it was the city where Prophet Muhammad migrated after fleeing Mecca (Hijra in 622 CE), where he established the first Islamic state, lived the later years of his life, and was buried. It remains the second holiest city in Islam after Mecca.