History of Prophet's Mosque
The original Prophet's Mosque was built by the Prophet himself, next to the house where he settled after his Hijrah (emigration) to Medina in 622 AD. It was an open-air building with a raised platform for the reading of the Qur'an.
A square enclosure of 30x35 meters, the mosque was built with palm trunks and mud walls and accessed through three doors: Bab Rahmah to the south, Bab Jibril to the west and Bab al-Nisa' to the east. The basic plan of the building has since been adopted in the building of other mosques throughout the world.
Inside, the Prophet created a shaded area to the south called the suffrah and aligned the prayer space facing north towards Jerusalem. When the qibla (prayer direction) was changed to Mecca, the mosque was re-oriented to the south. The mosque also served as a community center, a court, and a religious school. Seven years later (629 AD/7 AH), the mosque was doubled in size to accommodate the increasing number of Muslims.
Subsequent Islamic rulers continued to enlarge and embellish the Prophet's Mosque over the centuries. In 707, Umayyad Caliph al-Walid (705-715) tore down the old structure and built a larger one in its place, incorporating the house and tomb of the Prophet.
This mosque was 84 by 100 meters in size, with stone foundations and a teak roof supported on stone columns. The mosque walls were decorated with mosaics by Coptic and Greek craftsmen, similar to those seen in the Umayyad mosque in Damascus and the Dome of the Rock in Jerusalem (built by the same caliph). The courtyard was surrounded by a gallery on four sides, with four minarets on its corners. A mihrab topped by a small dome was built on the qibla wall.
Abbasid Caliph al-Mahdi (775-785) destroyed the northern section of al-Walid's mosque between 778 and 781 to enlarge it further. He also added 20 doors to the mosque: eight on each of the east and west walls, and four on the north wall.
During the reign of the Mamluk Sultan Qala'un, a dome was erected above the house and tomb of the Prophet and an ablution fountain was built outside of Bab al-Salam. Sultan Nasir bin Muhammad bin Qala'un rebuilt the fourth minaret that had been destroyed earlier. After a lightning strike destroyed much of the mosque in 1481, Sultan Qaytbay rebuilt the east, west and qibla walls.
The Ottoman sultans who controlled Medina from 1517 until World War I also made their mark. Sultan Suleyman I (1520-1566) rebuilt the western and eastern walls of the mosque and built the northeastern minaret known as al-Suleymaniyya. He added a new mihrab (al-Ahnaf) next to the Prophet's mihrab (al-Shafi'iyyah) and placed a new dome covered in lead sheets and painted green above the Prophet's house and tomb.