History

The history of mosques

From a modest courtyard of mud brick and palm trunks in Medina to the domes of Sinan and mosques on every continent – how mosques came to be, how they developed and where the oldest of them stand.

Key years

  1. 622the Quba Mosque and the Prophet’s Mosque in Medina
  2. 670the Great Mosque of Kairouan is founded
  3. 715the Umayyad Mosque of Damascus is completed
  4. 785work begins on the mosque of Córdoba
  5. 851the Great Mosque of Samarra and its spiral minaret
  6. 1327the Djinguereber Mosque in Timbuktu
  7. 1457the first Emperor’s Mosque in Sarajevo
  8. 1557Sinan’s Süleymaniye in Istanbul
  9. 1907today’s Great Mosque of Djenné

The first mosques: Quba and the Prophet’s Mosque

When the Prophet ﷺ moved from Mecca to Medina in 622 – the Hijra, with which the Islamic calendar begins – the first mosque was built at Quba, a village at the entrance to Medina. This is why the Quba Mosque is considered the first mosque in the history of Islam.

Soon after, the Prophet’s Mosque (al-Masjid an-Nabawi) was built in Medina itself. It was a simple walled enclosure: walls of mud brick, columns of palm trunks and a roof of palm leaves over one part, while the rest was an open courtyard. The rooms of the Prophet’s ﷺ family stood beside it.

This mosque was more than a place of prayer. People learned there, held counsel, received delegations and shared out help. Its plan – a courtyard and a covered hall along the wall facing the Qibla – became the model for many later mosques.

In the first months Muslims prayed facing Jerusalem; some sixteen months after the Hijra the Qibla was changed to the Kaaba in Mecca. Since then every mosque in the world has faced the Kaaba, around which stands the Sacred Mosque – the largest mosque in the world, enlarged from the first caliphs to this day.

The parts of a mosque and how they came to be

Mihrab
The niche in the Qibla wall that shows the direction of prayer. The first mosques had none; the concave mihrab is first recorded at the beginning of the 8th century, when the Prophet’s Mosque was rebuilt under the caliph al-Walid I.
Minbar
The raised place from which the Friday sermon is given. The Prophet ﷺ gave the sermon from a simple wooden minbar of three steps; later minbars became true works of art in wood and stone.
Minaret
In the first mosques the call to prayer was given from a roof or another high place. Towers for the call appear in the Umayyad period, and in time the minaret became the best-known sign of a mosque.
Dome
Early mosques had domes only above the mihrab; with the Ottomans the great central dome became the heart of the whole building.
Courtyard and fountain
The courtyard before the prayer hall and the fountain for ablution – a place to gather and rest, inherited from the open courtyard of the Prophet’s Mosque.

The Umayyads and the Abbasids (7th–10th century)

As Islam spread, mosques rose in new cities. The Great Mosque of Kairouan (in today’s Tunisia) was founded in 670, when the commander Uqba ibn Nafi founded the city itself. The present building dates mostly from the 9th century, and its minaret is one of the oldest surviving minarets.

In Damascus the caliph al-Walid I built the Umayyad Mosque from 705 to 715 on the site of an earlier church – with a large courtyard, a prayer hall of three aisles and golden mosaics. It became the model for great city mosques across the Islamic world.

The Abbasids built on an enormous scale. The Great Mosque of Samarra (848–851) was in its time the largest mosque in the world, and its spiral minaret, the Malwiya, still stands. In Cairo, Ahmad ibn Tulun built a mosque from 876 to 879 that is one of the oldest in Egypt surviving in its original form.

From Córdoba to Timbuktu and China

In the west of the Islamic world, Abd al-Rahman I began building the great mosque of Córdoba in 785; it was enlarged several times over the next two centuries. Its forest of columns with two-coloured arches made it one of the best-known buildings of medieval Europe; since the 13th century it has served as a cathedral.

In West Africa mosques were built of earth and wooden beams that stick out of the walls. The Djinguereber Mosque in Timbuktu was built in 1327, in the time of the Malian ruler Mansa Musa, and today’s Great Mosque of Djenné, built in 1907 on the site of an older one, is the largest mud-brick building in the world.

Muslim merchants brought Islam to the port cities of China. Tradition links the Huaisheng Mosque in Guangzhou to the first century of Islam, though the exact year it was built is not known for certain. Chinese mosques were often built in the style of traditional temples, with courtyards and roofs with upturned edges.

Persia, the Seljuks and the Mughals

In Iran and Central Asia the iwan plan developed – tall vaulted portals opening onto the courtyard. The Friday Mosque of Isfahan grew over centuries and shows best how the plan with four iwans came to be.

At the beginning of the 17th century the Shah (today Imam) Mosque was built in Isfahan, covered in blue tiles. In Lahore the Mughal emperor Aurangzeb built the Badshahi Mosque from 1671 to 1673, one of the largest mosques of the Indian subcontinent.

The Ottoman domes

Ottoman builders put a great central dome at the heart of the mosque, surrounded by half-domes and slender, pencil-shaped minarets. The best known of them, Mimar Sinan, built the Süleymaniye in Istanbul (1550–1557) and the Selimiye in Edirne (1568–1575), which he considered his masterpiece.

This style spread across the empire – from Cairo to Buda – and shaped the look of mosques in the Balkans.

Mosques in Bosnia and Herzegovina

The first mosques in Bosnia and Herzegovina were built in the 15th century. The Emperor’s Mosque in Sarajevo was first built in 1457, and the present building dates from the middle of the 16th century. The Gazi Husrev-beg Mosque (1530–1531) is the largest and best-known Ottoman mosque in the country.

Many old mosques were destroyed in the war of 1992–1995 and later rebuilt in their original form: the Aladža Mosque in Foča, built in 1550, reopened in 2019, and the Ferhadija in Banja Luka, from 1579, in 2016.

Mosques today

Today mosques stand on every continent – from great city mosques to small prayer rooms in apartment buildings. Many of them are not yet on any map.

That is why we build the world mosque map together: if you know a mosque without a photo or with wrong details, add your photo and the details – your name stays with your contribution.

The oldest mosques on our mapSee them on a line of years – with photos, places and each mosque’s page.
To the world mosque map →

Open the mosque map

Sources

The text summarises well-known historical facts; for details see the Wikipedia articles: