Medina is the second holy city of Islam. The Prophet Muhammad, migrated to Medina from Mecca, and taught there for some years before his triumphant return to Mecca. The city is commonly visited as part of the Hajj pilgrimage.
Medina has great historical significance as the city to which Muhammad fled when he was initially driven out of Mecca as well as the place where he attracted his first followers. Medina's importance as a religious site derives from the presence there of the Masjid al-Nabawi, the Prophet's Mosque, which was built on the site of Muhammad's home and is where he is buried. The oldest mosque is also located in Medina and is known as Masjid al-Quba, the Quba Mosque.