How Many Mosques Are There in Morocco? Numbers, Famous Mosques and Visiting Tips

Walk through any Moroccan town at dawn and you’ll hear it before you see it: the call to prayer rising from one minaret, then another, then a dozen more across the rooftops. Mosques are everywhere in Morocco, from the giant Hassan II Mosque on the Atlantic coast in Casablanca to small whitewashed prayer rooms in Atlas villages that most visitors never notice. So how many mosques are there in Morocco?

According to the most recent figures from Morocco’s Ministry of Habous and Islamic Affairs, the country has about 52,000 mosques. In October 2025, the minister, Ahmed Toufiq, told parliament that Morocco had 37,766 mosques in rural areas and 14,336 in cities, which adds up to just over 52,100. In this guide, we explain where that number comes from, why most of Morocco’s mosques are in the countryside, which ones are the most famous and which ones you can actually visit as a traveler.

QuestionAnswer
How many mosques are there in Morocco?About 52,000, according to the Ministry of Habous and Islamic Affairs
Rural mosques37,766, roughly 72% of the total
Urban mosques14,336
Mosques per personRoughly one mosque for every 700 people
Largest mosqueHassan II Mosque, Casablanca
Oldest mosqueAl-Qarawiyyin Mosque, Fes, founded in 859
Can non-Muslims visit?Generally no, with a few notable exceptions such as the Hassan II Mosque

Morocco is one of the few countries where mosque numbers are tracked closely by the state. Mosques fall under the Ministry of Habous and Islamic Affairs, which oversees religious buildings, appoints and trains imams, and manages the habous, the religious endowments that have funded mosques for centuries.

The ministry’s figures have grown steadily over the past decade:

PeriodReported number of mosquesSource
2014About 50,000Ministry figures reported in the Moroccan press
2022About 51,000Ministry figures reported by Bladi
2024About 52,000Minister Ahmed Toufiq in parliament
October 202537,766 rural plus 14,336 urban, about 52,100Minister Ahmed Toufiq at the House of Councillors

The exact figure changes every year as new mosques are built, old ones are rebuilt and some are closed for safety reasons. That’s why you’ll see slightly different numbers online. Any figure between 50,000 and 52,000 is correct for its date, and around 52,000 is the best current estimate.

What counts as a mosque?

The official figures include large Friday mosques, where the weekly sermon is given, as well as smaller neighborhood and village mosques used for daily prayers. They don’t usually include private prayer rooms in offices, train stations, shopping malls or homes, or the many zawiyas, Sufi lodges and shrines that dot the country. If you counted every place where people pray, the number would be much higher.

About 72% of Morocco’s mosques are in rural areas, even though most Moroccans now live in cities. Minister Toufiq has noted that rural areas have around 15 mosques per 5,000 inhabitants, compared with about 4 per 5,000 in cities.

There are a few reasons for this:

  • Scattered villages: in the Atlas Mountains, the Rif and the pre-Saharan valleys, people live in small villages, or douars, spread over large areas. Each village usually has its own mosque, even if it serves only a few dozen families
  • Community tradition: in rural Morocco, the village mosque has long been the center of community life. It’s where children traditionally learned the Quran, where village matters were discussed and where travelers could find shelter
  • Local building: many village mosques were built by the community itself, with families contributing land, money or labor
  • Urban growth: cities have grown fast, and big urban mosques serve thousands of worshippers each, so fewer buildings serve more people

If you travel through the High Atlas or the Draa Valley, you’ll notice that even the smallest cluster of houses often has a simple mosque with a square minaret. Our guide to the Amazigh people of Morocco explains more about life in these rural communities.

Morocco’s 2024 census counted about 36.8 million people. With around 52,000 mosques, that’s roughly one mosque for every 700 people, although the ratio is very different in the countryside and in big cities like Casablanca, where a single large mosque can serve an entire district. For the bigger picture on faith in the country, read our guide on whether Morocco is a Muslim country.

The ministry has said that Morocco needs to build around 200 new mosques a year to keep up with population growth and new neighborhoods. Many new mosques are financed by private donors, families or associations, who build them with official authorization and then hand them over to the ministry to manage.

Morocco has a distinctive model of religious life, and mosques are at the heart of it.

  • Official religion: Islam is the state religion, and the King holds the title Commander of the Faithful, or Amir al-Mu’minin
  • Religious tradition: Moroccan mosques follow the Maliki school of Islamic law, Ash’ari theology and a long tradition of Sufism
  • Imams: the ministry appoints and supervises imams. In 2025, about 48,000 imams took part in its training program, which brings them together regularly for religious and practical education
  • Women religious guides: since the mid-2000s, Morocco has trained women as murshidat, religious guides who work in mosques, schools, prisons and hospitals
  • Friday sermons: the ministry provides guidance on Friday sermons and supervises religious messaging in mosques
  • Opening hours: mosques generally open for prayer times rather than all day

This centralized system is one reason Moroccan mosques have a recognizable feel across the country. You can read more about how religion and law interact in our guide on whether Morocco has Sharia law.

Not every one of Morocco’s 52,000 mosques is open at any given time. Older buildings, especially in rural areas, are regularly inspected, and mosques that are unsafe are closed until they can be repaired or rebuilt. In 2024, the minister reported that more than 4,000 rural mosques were closed for structural or safety reasons, and the ministry runs an ongoing program of rehabilitation and fire-safety upgrades.

The September 2023 Al Haouz earthquake, which struck the High Atlas south of Marrakech, made the problem much worse. According to the ministry, 2,217 mosques were damaged. By September 2025, 1,239 of them had reopened, and the rest were in the process of being repaired, with the program expected to be completed by the end of 2026. Among the damaged buildings was the historic Tinmel Mosque, one of the most important monuments in the Atlas Mountains.

Out of tens of thousands of mosques, a handful stand out for their history, size or architecture.

MosqueCityDateWhy it’s famous
Al-Qarawiyyin MosqueFesFounded 859Morocco’s oldest mosque and home to one of the world’s oldest universities
Andalusian MosqueFesFounded 860One of the twin founding mosques of the Fes medina
Great Mosque of SaléSalé11th centuryOne of the oldest Friday mosques on the Atlantic coast
Ben Youssef MosqueMarrakechFounded in the Almoravid period, rebuilt laterNext to the famous Ben Youssef Madrasa
Tinmel MosqueHigh Atlas1148Almohad mosque in the mountains, open to visitors as a historic site
Koutoubia MosqueMarrakech12th centuryMarrakech’s landmark minaret, about 77 meters tall
Kasbah MosqueMarrakechLate 12th centuryAlmohad mosque near the Saadian Tombs
Hassan TowerRabatLate 12th centuryUnfinished minaret of what was meant to be a giant mosque
Hassan II MosqueCasablancaCompleted 1993Morocco’s largest mosque, with a 210-meter minaret

Al-Qarawiyyin: the oldest

The Al-Qarawiyyin Mosque in Fes was founded in 859 by Fatima al-Fihri, a woman from Kairouan in present-day Tunisia. It grew into a major center of learning, and the university that developed around it is often described as one of the oldest continuously operating educational institutions in the world. Non-Muslims can’t enter the prayer hall, but you can glimpse its courtyard through the open doors as you walk through the medina of Fes.

Koutoubia: the landmark of Marrakech

The Koutoubia Mosque is the symbol of Marrakech. Its minaret, completed under the Almohads in the 12th century, became a model for later minarets in Morocco and Spain. Learn more in our full guide to the Koutoubia Mosque.

Hassan II Mosque: the largest

The Hassan II Mosque in Casablanca is the largest mosque in Morocco and one of the largest in the world. Completed in 1993 and designed by the French architect Michel Pinseau, it stands partly over the Atlantic Ocean. Its key figures are impressive:

  • Minaret: 210 meters tall, one of the tallest in the world
  • Capacity: about 25,000 worshippers inside and around 80,000 in the surrounding grounds
  • Roof: a retractable roof that opens to let in daylight and fresh air
  • Laser: a laser at the top of the minaret points toward Mecca at night

It’s also the main mosque in Morocco that non-Muslims can visit inside. See our guide to the best places to see in Casablanca or join a day trip from Marrakech to Casablanca.

This is one of the most common questions travelers ask. In Morocco, non-Muslims are generally not allowed to enter active mosques. This is a long-standing practice dating back to the French protectorate period, and it’s still followed today. Signs at mosque doors sometimes make it clear, and if not, a local will politely let you know.

There are a few exceptions:

  • Hassan II Mosque, Casablanca: non-Muslims can visit on guided tours, usually several times a day outside prayer times. Tour times change, especially on Fridays and during Ramadan, so check before you go
  • Tinmel Mosque, High Atlas: this historic Almohad mosque no longer functions as a mosque and has been open to visitors as a monument, although restoration work following the 2023 earthquake may affect access
  • Madrasas: Islamic schools such as the Ben Youssef Madrasa in Marrakech and the Bou Inania and Al-Attarine madrasas in Fes are open to visitors and show the same style of carved plaster, cedar wood and zellige tilework
  • Monuments: ruins and historic sites such as the Hassan Tower in Rabat can be visited freely

Even when you can’t go inside, mosques are beautiful to see from the outside. The minarets, the green-tiled roofs, the carved doors and the fountains for ablutions are part of what makes Moroccan cities so memorable. If you’re heading to the capital, our guide to Rabat includes the Hassan Tower and the Mausoleum of Mohammed V.

You don’t need to enter a mosque to show respect. A few simple habits go a long way:

  • Don’t photograph worshippers, especially during prayer or at the entrance
  • Don’t stand in the doorway or look inside for a long time during prayers
  • Dress modestly when visiting the Hassan II Mosque: shoulders and knees covered, and a headscarf is a good idea for women
  • Remove your shoes when entering any prayer area; on the Hassan II tour, you’ll be given a bag to carry them
  • Keep your voice down near mosques at prayer time, especially at Friday midday prayer
  • Expect streets around big mosques to fill up on Fridays around midday, when worshippers sometimes pray outside

With so many mosques, the call to prayer, or adhan, is part of the soundtrack of Morocco. It’s given five times a day: at dawn, midday, mid-afternoon, sunset and nightfall. The exact times change with the seasons and are published daily. In cities, you’ll often hear several mosques calling at once, slightly out of sync, which can be one of the most memorable moments of a trip, especially from a riad rooftop at sunset.

During Ramadan, mosques are especially busy in the evenings for tarawih prayers. If you’re traveling at that time, read our guide to traveling in Morocco during Ramadan.

If you’ve visited mosques in Turkey, Egypt or the Gulf, Moroccan mosques may look quite different. Common features include:

  • Square minarets: most Moroccan minarets are square towers, unlike the round or pencil-shaped minarets common elsewhere
  • Green tiled roofs: green glazed tiles are a typical feature, especially on important mosques and shrines
  • Horseshoe arches: inherited from the Andalusian and Almoravid traditions
  • Zellige, carved plaster and cedar: the same decorative crafts you’ll see in palaces and madrasas
  • Courtyards with fountains: used for ablutions before prayer

This style, often called Moroccan or Hispano-Moorish architecture, developed over centuries under the Almoravids, Almohads, Marinids and later dynasties. Our history of Marrakech explains how these dynasties shaped the city’s monuments.

Mosques make up the vast majority of places of worship in Morocco, but they’re not the only ones. The country also has historic synagogues in cities like Fes, Marrakech, Essaouira and Casablanca, and a number of churches serving foreign residents and visitors. See our guide to churches in Morocco for more.

So, how many mosques are there in Morocco? About 52,000, according to Morocco’s Ministry of Habous and Islamic Affairs, with more than 37,000 in rural areas and more than 14,000 in cities. That’s one of the densest networks of mosques in the region, shaped by small mountain villages, a strong tradition of community mosques and a state that manages religious life closely.

As a traveler, you won’t be able to step inside most of them, but you’ll see and hear them everywhere. Visit the Hassan II Mosque in Casablanca, walk past the Koutoubia in Marrakech, peek into the courtyard of Al-Qarawiyyin in Fes and listen for the call to prayer at sunset. If you’d like a private tour that includes Morocco’s most beautiful religious architecture, contact our team and we’ll help you plan it. You can also browse our list of things to do in Morocco for more ideas.

How many mosques are there in Morocco?

About 52,000. In October 2025, Morocco’s Ministry of Habous and Islamic Affairs reported 37,766 mosques in rural areas and 14,336 in cities.

What is the largest mosque in Morocco?

The Hassan II Mosque in Casablanca. It can hold about 25,000 worshippers inside and around 80,000 more in its grounds, and its minaret is 210 meters tall.

What is the oldest mosque in Morocco?

The Al-Qarawiyyin Mosque in Fes, founded in 859 by Fatima al-Fihri.

Why are there so many mosques in rural Morocco?

Rural Moroccans live in many small, scattered villages, and each village traditionally has its own mosque. About 72% of the country’s mosques are in rural areas.

Can non-Muslims enter mosques in Morocco?

Generally not. The main exception is the Hassan II Mosque in Casablanca, which offers guided tours. Historic madrasas and some former mosques, such as Tinmel, can also be visited.

Who manages mosques in Morocco?

The Ministry of Habous and Islamic Affairs manages mosques, appoints and trains imams and oversees religious endowments.

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