Largest Mosque in the World

Which is the largest mosque in the world? The answer is clear: the Masjid al-Haram, the Great Mosque of Mecca, which surrounds the Kaaba and welcomes millions of pilgrims during Hajj. But behind it is a fascinating list of enormous mosques across the world, from Medina and Algiers to Jakarta, Islamabad and Casablanca, where the Hassan II Mosque, with one of the tallest minarets on Earth, rises above the Atlantic Ocean.

In this guide, our Moroccan team explains the largest mosques in the world, how “largest” is measured, where the Hassan II Mosque ranks, and which great mosques you can visit as a traveler. Figures for area and capacity differ between sources and change with expansions, so treat them as approximate.

MosqueCity, countryApproximate capacityKnown for
Masjid al-HaramMecca, Saudi ArabiaMillions during HajjLargest and holiest mosque, home of the Kaaba
Al-Masjid an-NabawiMedina, Saudi ArabiaOver a millionThe Prophet’s Mosque, second holiest site
Djamaa El DjazaïrAlgiers, AlgeriaAbout 120,000Largest mosque in Africa, tallest minaret (265 m)
Istiqlal MosqueJakarta, IndonesiaOver 100,000Largest mosque in Southeast Asia
Hassan II MosqueCasablanca, MoroccoAbout 105,000 including esplanade210 m minaret, built over the Atlantic
Faisal MosqueIslamabad, PakistanAbout 100,000Modern design inspired by a Bedouin tent

The largest mosque in the world is the Masjid al-Haram in Mecca, Saudi Arabia. It surrounds the Kaaba, the most sacred site in Islam, toward which Muslims around the world pray. Repeated expansions have turned it into a vast complex of prayer halls, courtyards, minarets and multi-level circulation areas. Its area is usually quoted at several hundred thousand square metres, and during Hajj it can hold millions of worshippers.

The Masjid al-Haram is open only to Muslims, as entry to Mecca is restricted to Muslims.

Rankings vary because mosques can be measured in different ways:

  • Total area of the complex, including courtyards and esplanades
  • Area of the covered prayer hall only
  • Capacity: the number of worshippers who can pray at once, inside and outside
  • Height of the minaret or the dome

A mosque with a huge courtyard may rank higher by capacity than one with a bigger covered hall. That is why lists online often disagree. The top two, Mecca and Medina, are clear; after that, the order depends on the method.

The Prophet’s Mosque in Medina, founded by the Prophet Muhammad, is the second holiest site in Islam and, by most measures, the second largest mosque in the world. Famous for its green dome over the Prophet’s tomb and its giant umbrella-like shades in the courtyards, it can accommodate more than a million worshippers after successive expansions. Access to the central area of Medina is restricted to Muslims.

The Great Mosque of Algiers, Djamaa El Djazaïr, was inaugurated in 2019 on the bay of Algiers. It can welcome around 120,000 worshippers and its minaret, at 265 metres, is the tallest in the world. It overtook the Hassan II Mosque as the largest mosque in Africa.

Indonesia’s national mosque, built to commemorate the country’s independence, is the largest mosque in Southeast Asia, with a capacity often quoted above 100,000. Its name means “independence”.

Pakistan’s national mosque stands at the foot of the Margalla Hills. Its striking, tent-like modern design breaks with traditional domes, and it can hold around 100,000 worshippers including its courtyards.

The Hassan II Mosque in Casablanca is the largest mosque in Morocco and one of the largest in Africa and the world. Its prayer hall can hold about 25,000 worshippers, and its esplanade around 80,000 more, for a total often quoted around 105,000. Its minaret, at 210 metres, was the tallest in the world until Djamaa El Djazaïr, and it is now the second tallest.

What makes it special for travelers is that, unlike most of the mosques above, non-Muslims can visit its interior on a guided tour. Read our full guide to the Hassan II Mosque in Casablanca.

  • Sheikh Zayed Grand Mosque, Abu Dhabi: famous for white marble, domes and one of the largest carpets in the world; open to visitors.
  • Badshahi Mosque, Lahore: a monumental Mughal mosque with a vast courtyard.
  • Imam Reza Shrine, Mashhad: a huge shrine complex in Iran.
  • The Great Mosque of Kairouan, Tunisia: one of the oldest and most important mosques in North Africa.
  • The Umayyad Mosque, Damascus: one of the oldest great mosques in the world.

Morocco has several historic and monumental mosques:

  • The Hassan II Mosque, Casablanca: the largest in Morocco, open to non-Muslims on tours.
  • The Koutoubia Mosque, Marrakech: the city’s great 12th-century Almohad mosque, with an iconic minaret.
  • The Qarawiyyin, Fes: founded in the 9th century, a historic centre of learning.
  • The Hassan Tower, Rabat: the minaret of a mosque begun in 1195 that was meant to be among the largest in the world.

Read about the Koutoubia Mosque and the Hassan Tower in Rabat, and see how many mosques there are in Morocco.

It depends on the country and the mosque. In Morocco, most mosques are open only to Muslims, but the Hassan II Mosque welcomes non-Muslims on guided tours. Abroad, mosques like the Sheikh Zayed Grand Mosque in Abu Dhabi and the Faisal Mosque in Islamabad welcome visitors at set times. Mecca and the central area of Medina are restricted to Muslims. Always dress modestly and follow local rules.

The first mosque was simple: an open courtyard with palm-trunk columns and a roof of palm leaves in Medina. Over the centuries, mosques grew into great architectural statements, with hypostyle halls full of columns, domes, courtyards with fountains for ablutions and minarets from which the call to prayer is made. Different regions developed their own styles: Andalusian and Maghrebi mosques with square minarets and horseshoe arches, Ottoman mosques with huge central domes and slender pencil minarets, Persian mosques with tiled iwans and Mughal mosques with red sandstone and marble.

Morocco follows the Maghrebi-Andalusian tradition, with square minarets, carved plaster, cedar wood and colourful zellige tiles, all beautifully displayed in the Hassan II Mosque.

  • Djamaa El Djazaïr, Algiers: about 265 metres
  • Hassan II Mosque, Casablanca: 210 metres

These two modern minarets are far taller than historic ones. Among historic minarets, the Koutoubia in Marrakech, at around 77 metres, and the Hassan Tower in Rabat, left at 44 metres, are famous examples of the Almohad style.

If you want to see one of the world’s great mosques, Casablanca is the place. The guided tour takes about an hour and shows the vast prayer hall, the opening roof, the ablution hall and the hammams. Combine it with a walk on the Corniche and a visit to Rabat’s Hassan Tower, then continue to Fes, Marrakech and the Sahara. See our Morocco itineraries.

  • Dress modestly, covering shoulders and knees; women may cover their hair.
  • Remove your shoes before entering prayer areas.
  • Visit outside prayer times, and follow the instructions of guides and staff.
  • Speak quietly and avoid photographing worshippers.
  • On Fridays, the main day of collective prayer, visitor access is often reduced.

Mosques are designed to gather the whole community for the Friday prayer and for the great celebrations of Eid, when entire cities pray together. In Mecca and Medina, millions of pilgrims arrive during Hajj and Umrah, which is why these mosques have been expanded again and again. National mosques like the Hassan II Mosque, Istiqlal and Faisal were built as symbols of faith and national identity, designed to welcome huge crowds on major occasions.

  • Hassan II Mosque, Casablanca, Morocco: official guided tours outside prayer times.
  • Sheikh Zayed Grand Mosque, Abu Dhabi: open to visitors at set times, with a strict dress code.
  • Faisal Mosque, Islamabad: visitors welcome outside prayer times.
  • Istiqlal Mosque, Jakarta: guided visits are often available.
  • Sultan Ahmed Mosque (the Blue Mosque), Istanbul: open to visitors outside prayer times.

Always check current visiting hours and dress codes before you go.

Morocco has tens of thousands of mosques, from tiny neighbourhood prayer rooms to grand historic and modern monuments. Every town has a main Friday mosque, and in the old medinas you will hear the call to prayer echo from many minarets at once. Read our guide to how many mosques there are in Morocco.

The two great modern mosques of North Africa are often compared. The Hassan II Mosque, completed in 1993, sits dramatically over the Atlantic in Casablanca, with a 210-metre minaret and lavish traditional Moroccan craftsmanship. Djamaa El Djazaïr, inaugurated in 2019 on the bay of Algiers, is larger by capacity and has the world’s tallest minaret at around 265 metres, with a more contemporary architectural style. Both are symbols of national identity and impressive feats of engineering.

The largest mosque in the world is the Masjid al-Haram in Mecca, followed by the Prophet’s Mosque in Medina. After them, great mosques in Algiers, Jakarta, Islamabad and Casablanca show the incredible diversity of Islamic architecture. If you travel to Morocco, the Hassan II Mosque is your chance to step inside one of the world’s great mosques, perched above the Atlantic with its soaring minaret.

What is the largest mosque in the world?

The Masjid al-Haram in Mecca, Saudi Arabia, which surrounds the Kaaba and can hold millions of worshippers during Hajj.

What is the second largest mosque in the world?

Al-Masjid an-Nabawi, the Prophet’s Mosque in Medina.

What is the largest mosque in Africa?

Djamaa El Djazaïr in Algiers, inaugurated in 2019.

What is the largest mosque in Morocco?

The Hassan II Mosque in Casablanca.

Which mosque has the tallest minaret?

Djamaa El Djazaïr in Algiers, at 265 metres. The Hassan II Mosque’s 210-metre minaret is the second tallest.

Can non-Muslims visit the Hassan II Mosque?

Yes, on official guided tours outside prayer times.

Can non-Muslims visit Mecca?

No. Entry to Mecca is restricted to Muslims.

Why do lists of the largest mosques differ?

Because they use different measures: total area, prayer hall size or capacity, and figures change after expansions.

Tours from Marrakech: Cross the High Atlas to Ait Ben Haddou and the dunes of Erg Chebbi.

Morocco Desert Tours: Camel trekking and a night under the stars in a Sahara desert camp.

Tours from Fes: The oldest medina in Morocco, then the Middle Atlas and the desert.

Tours from Casablanca: Begin at the Hassan II Mosque and travel through the imperial cities.

Tours from Tangier: Start in the north with Chefchaouen and the Rif Mountains.

Tours from Ouarzazate: Kasbahs, film studios and the gorges of the south.

Name
Lahcen Saadi, a professional local guide from the Exploring Morocco Trips team, in traditional attire in front of a 4x4 in the Sahara dunes

Your Local Experts

Our Moroccan team organizes private tours from every major city in Morocco: Marrakech, Fes, Casablanca, Tangier, Rabat, Agadir, Ouarzazate and more. Wherever you land, we pick you up and design your trip around your dates and interests.

Scroll to Top