Travel by interest

Mosques in Morocco

Morocco's mosques and madrasas: touring Hassan II in Casablanca, the Kutubiyya, Qarawiyyin and Fez's madrasas, which ones non-Muslims can enter, dress, prayer times and Ramadan.

Milamber's portfolio CC BY 2.0 Wikimedia Commons

Southern MoroccoNorthern MoroccoAtlantic CoastMarrakesh and the AtlasFes and MeknesHassan II MosqueGrand Mosque of ChefchaouenGrand Mosque of MeknesKutubiyya MosqueGreat Mosque of SaléBab Berdieyinne MosqueGreat Mosque of TazaCasablanca CathedralRussian Orthodox Church in RabatBen Youssef MosqueKasbah Mosque, MarrakeshIbn Danan SynagogueMosque of the AndalusiansTinmal MosqueAhl Fas MosqueAl-Mohammadi MosqueAl-Quds Mosque (Casablanca)Diwan MosqueEl-Oued MosqueGrand Mosque of TangierLalla Abla MosqueAl-Hamra MosqueAl-Qarawiyyin Mosque (Morocco)Assunna MosqueBab Doukkala MosqueBab Guissa MosqueBen Salah MosqueMouassine MosqueMoulay Slimane MosqueSidi Bou Abid MosqueSimon Attias SynagogueSlat al-Azama Synagogue

Morocco is one of the few Muslim countries where non-Muslims are kept out of almost every working mosque, a rule that dates from the French protectorate. The great exception is the Hassan II Mosque in Casablanca, built partly over the Atlantic with a minaret of about 210 m, which runs guided tours for visitors of any faith every day except at prayer times.

Everywhere else, you see Moroccan religious architecture through the madrasas, the old Quranic colleges that are now open as monuments. Their carved cedar, stucco and tilework match anything inside the mosques themselves. The best are in Fez and Marrakesh, next to famous mosques you can only admire from the door: the Qarawiyyin, founded in 859, and the Kutubiyya, whose 12th-century minaret is the model for the Hassan Tower in Rabat.

The rules are simple and strictly kept: stay outside unless a sign or a guardian invites you in, dress modestly, and avoid the doorways at prayer time, above all at Friday midday prayer. For greetings, Ramadan customs and daily etiquette, see our first-timer’s guide to Morocco.

At a Glance#

Casablanca#

The Hassan II Mosque, completed in 1993, is the largest mosque in Morocco and one of the largest in the world. Its prayer hall holds about 25,000 worshippers and the esplanade outside tens of thousands more. Part of the building stands on a platform over the sea, the roof can slide open, and the minaret, lit with a laser pointing towards Mecca at night, is among the tallest anywhere. Thousands of Moroccan craftsmen worked on the cedar ceilings, zellige tilework and carved plaster, and that is the real reason to take the tour: it is the one chance in the country to see this craft inside a mosque.

Guided tours of about 45 minutes run several times a day in English, French, Spanish and other languages, and include the vast basement ablution hall and the hammam. Tickets cost 140 dirhams for foreign adults, less for students and children, and are sold at the mosque’s ticket office rather than online. Tours are fewer on Fridays and skip prayer times, so check the official schedule before you go. You take your shoes off and carry them in a bag provided.

The Hassan II Mosque on the seafront in Casablanca
The Hassan II Mosque on the seafront in Casablanca Photo: Tinuzzo, CC BY 4.0, via Wikimedia Commons

In the Habous quarter, the 1930s “new medina”, the Mohammadi Mosque is an elegant working mosque you see from the street, close to the olive and pastry souks. The Casablanca Cathedral, an Art Deco church no longer used for worship, is a short taxi ride inland.

Marrakesh#

The Kutubiyya Mosque is the landmark of Marrakesh: its 77 m minaret, finished under the Almohads in the late 12th century, can be seen from all over the city and set the pattern for minarets across the Maghreb. Non-Muslims cannot enter, but the gardens around it are free and open all day, and the excavated foundations of an earlier mosque lie beside it. Come at sunset, when the stone turns pink and the call to prayer carries across Jemaa el-Fna and the medina.

The 12th-century minaret of the Kutubiyya Mosque in Marrakesh
The 12th-century minaret of the Kutubiyya Mosque in Marrakesh Photo: Baca12, CC BY-SA 4.0, via Wikimedia Commons

In the northern medina, the Ben Youssef Madrasa, attached to the Ben Youssef Mosque, is the best interior you can visit in the city. Students once lived in more than 100 small cells around a courtyard of carved cedar, stucco and tile around a long pool. It reopened after restoration in 2022, costs about 50 dirhams and gets busy from late morning, so go at opening time. The small Almoravid Qubba nearby is a rare 12th-century survivor with a carved dome.

The courtyard and pool of the Ben Youssef Madrasa in Marrakesh
The courtyard and pool of the Ben Youssef Madrasa in Marrakesh Photo: Heribert Bechen .. thanks for 2.6 mio. visits from Bergisch Gladbach, Germany, CC BY-SA 2.0, via Wikimedia Commons

Elsewhere in the medina, the Mouassine Mosque has a public fountain on its wall, still used by locals, and the Bab Doukkala Mosque and Ben Salah Mosque are fine to see from the lanes. In the kasbah quarter, the Kasbah Mosque stands next to the entrance to the Saadian Tombs, a royal necropolis that is open to all.

Fez#

Fez has the richest concentration of religious buildings in the country, packed into the lanes of the Fez medina. At its centre is the Qarawiyyin Mosque, founded in 859 by Fatima al-Fihri and often described as the oldest continuously operating university in the world. Non-Muslims cannot enter, but the doors on several sides are often open, and from them you can see the white courtyard and its fountain pavilions. Do not step over the threshold.

The madrasas make up for it. The Bou Inania Madrasa, built in the 1350s near Bab Boujloud, is the only one in Fez with its own minaret and still serves as a mosque at prayer times; outside them you can enter the courtyard for about 20 dirhams. The smaller Al-Attarine Madrasa, beside the Qarawiyyin in the spice souk, has some of the finest zellige and carved plaster in Morocco, and the stairs to its roof give a view over the Qarawiyyin’s green roof tiles. The Sahrij Madrasa, across the river in the Andalusian quarter near the Mosque of the Andalusians, is quieter and recently restored.

Look out too for the green-tiled shrine of Moulay Idriss II, founder of Fez, in the heart of the medina. A wooden bar across the lanes around it marks the sacred zone where mules and, historically, non-Muslims could not pass. You can look in from the doorway at the candles and worshippers. The Bab Guissa Mosque, the Diwan Mosque and the El-Oued Mosque are local mosques you pass on medina walks, and the Al-Hamra Mosque stands on the main street of Fes el-Jdid.

Meknes and Moulay Idriss#

In Meknes, the Bou Inania Madrasa faces the Grand Mosque in the medina and is open to visitors, with a roof terrace looking onto the mosque’s green tiles. The Mausoleum of Moulay Ismail, the sultan who built the imperial city, is one of the few active shrines in Morocco that non-Muslims may enter, as far as its antechambers; it has spent long periods closed for restoration, so ask locally. The Bab Berdieyinne Mosque near the northern walls has a fine minaret.

Moulay Idriss Zerhoun, 30 minutes north of Meknes and close to the Roman ruins of Volubilis, is built around the tomb of Moulay Idris I, who founded Morocco’s first Islamic dynasty in 789. Until 2005 non-Muslims were not allowed to stay overnight in the town. The shrine itself is closed to non-Muslims, but you can walk up through the town to the terraces above it for views over the green-roofed mausoleum. In late summer it hosts a large pilgrimage, the moussem, when accommodation fills up.

Rabat and Salé#

The Hassan Tower in Rabat is the 44 m stump of a minaret begun in the 1190s for what was meant to be the largest mosque in the world; work stopped when its patron died. Its rows of column stumps stand on an open esplanade, free to visit, opposite the Mausoleum of Mohammed V, where the king who led Morocco to independence and his sons lie under a gilded ceiling. Non-Muslims can enter the mausoleum gallery, guarded by the royal guard, free of charge.

The Ahl Fas Mosque, inside the royal palace grounds, is where the king often attends Friday prayers; you see it from the Mechouar square. The Moulay Slimane Mosque is in the medina, and the ruined Chellah necropolis contains the remains of a Merinid mosque and minaret, now topped by storks’ nests.

Across the river in Salé, the Great Mosque of Salé dates from the Almohad period. Next to it, the Madrasa of Abu al-Hasan, finished in the 1340s, is open to visitors and has rich carved plaster and a roof with views to Rabat.

The Great Mosque of Salé, across the river from Rabat
The Great Mosque of Salé, across the river from Rabat Photo: R Prazeres, CC BY-SA 4.0, via Wikimedia Commons

Tinmal and the High Atlas#

Tinmal Mosque, high in the Nfis valley about 2.5 hours south of Marrakesh on the road over the Tizi n’Test pass, was built in the 1150s at the birthplace of the Almohad movement. It was long the only historic mosque in Morocco regularly open to non-Muslims, with its roofless brick arches standing in the mountains. The September 2023 earthquake badly damaged it, and it has been under reconstruction since. Check before making the trip; if you go, combine it with a drive through the High Atlas villages.

The north#

In Tangier, the Sidi Bou Abid Mosque stands on the Grand Socco, its minaret covered in coloured tiles, and the Grand Mosque sits in the old medina near the port. In Chefchaouen, the Grand Mosque with its octagonal minaret faces the Outa el Hammam square, and the abandoned Spanish Mosque on the hill east of town is a 30-minute walk up for the sunset view over the blue medina.

The Great Mosque of Taza is one of the oldest in the country, founded under the Almohads and enlarged by the Merinids, who hung a huge bronze chandelier in its prayer hall. It is closed to non-Muslims but makes a good stop on the way to Tazekka National Park (see our national parks page).

What non-Muslims can visit#

Site City Non-Muslims inside? Price Notes
Hassan II Mosque Casablanca Yes, guided tour 140 dirhams Not during prayers; fewer tours on Fridays
Ben Youssef Madrasa Marrakesh Yes About 50 dirhams Busy late morning
Bou Inania Madrasa Fez Yes, outside prayer times About 20 dirhams Still an active mosque
Al-Attarine Madrasa Fez Yes About 20 dirhams Roof view of the Qarawiyyin
Madrasa of Abu al-Hasan Salé Yes Small fee Quiet, roof terrace
Mausoleum of Mohammed V Rabat Yes Free Dress code enforced
Saadian Tombs Marrakesh Yes About 100 dirhams Queues at midday
Tinmal Mosque High Atlas Yes, when reopened Tip to the guardian Earthquake damage since 2023
Kutubiyya Mosque Marrakesh No, gardens only Free Best at sunset
Qarawiyyin Mosque Fez No, view from the doors Free Do not cross the threshold

Visiting rules and dress#

Wear clothes that cover your shoulders and knees, men as well as women, for every mosque, madrasa and shrine. Women do not usually need a headscarf for the Hassan II tour or the madrasas, but carry one for shrines and holy towns. Shoes come off wherever there are carpets or prayer mats.

Do not enter working mosques

Unless a mosque runs tours or a guardian invites you in, non-Muslims must stay outside, and that includes stepping over the threshold for a photo. Do not photograph people praying, and keep a respectful distance from doorways at prayer time.

Morocco’s mosques call the five daily prayers: dawn, around midday, mid-afternoon, sunset and nightfall, with times shifting through the year. The main congregational prayer is at midday on Friday, when the streets around big mosques fill and tours pause. Madrasas that double as mosques, such as Bou Inania in Fez, close to visitors during prayers.

Ramadan in 2027 is expected around 8 February to 9 March, with exact dates set by the moon. Mosques are fullest at the night prayers, and monuments keep shorter hours. Eating, drinking and smoking in public during daylight is best avoided out of respect. Our best time to visit Morocco page covers how Ramadan affects a trip.

💡 Pro Tip

Hire an official guide for half a day in the Fez medina. They know which madrasas are open that day, where you can see into the Qarawiyyin and the Moulay Idriss II shrine, and how to reach them through the lanes.

Synagogues and churches#

Morocco also keeps the most visible Jewish heritage in the Arab world. The Ibn Danan Synagogue in the Fez mellah, the Slat al-Azama Synagogue in Marrakesh and the Simon Attias Synagogue in Essaouira, now the Bayt Dakira heritage house, are all open to visitors for a small fee or donation. In Rabat, the Russian Orthodox Church still holds services. For the medinas, kasbahs and Roman sites around these buildings, see our historic sites page.

All religious sites in Morocco#

Hassan II Mosque Mosque Hassan II Mosque Coastal Casablanca mosque with towering minaret and ocean views Grand Mosque of Chefchaouen Mosque Grand Mosque of Chefchaouen Historic mosque at Chefchaouen's blue medina Grand Mosque of Meknes Mosque Grand Mosque of Meknes Large 18th-century mosque and spiritual center in Meknes Kutubiyya Mosque Mosque Kutubiyya Mosque Landmark 12th-century mosque near Marrakech medina Great Mosque of Salé Mosque Great Mosque of Salé Historic Salé mosque with significant Andalusian-era heritage Bab Berdieyinne Mosque Mosque Bab Berdieyinne Mosque Historic mosque in Fès with traditional Moroccan architecture Great Mosque of Taza Mosque Great Mosque of Taza Historic Moroccan mosque in Taza's old medina Religious Site Casablanca Cathedral Former cathedral in Casablanca with striking colonial architecture Russian Orthodox Church in Rabat Religious Site Russian Orthodox Church in Rabat Russian Orthodox church in Rabat serving expatriate community Ben Youssef Mosque Mosque Ben Youssef Mosque Historic Marrakech mosque near medina and old quarters. Kasbah Mosque, Marrakesh Mosque Kasbah Mosque, Marrakesh Large mosque adjacent to Kasbah with minaret and courtyard Ibn Danan Synagogue Synagogue Ibn Danan Synagogue Historic 17th-century synagogue in Fez's Jewish quarter Mosque of the Andalusians Mosque Mosque of the Andalusians Historic mosque in Fes's Andalusian quarter Tinmal Mosque Mosque Tinmal Mosque 12th-century Almohad mosque near Atlas Mountains Ahl Fas Mosque Mosque Ahl Fas Mosque Historic mosque in Rabat-Salé-Kénitra region Al-Mohammadi Mosque Mosque Al-Mohammadi Mosque Neighborhood mosque in Casablanca serving local congregation Al-Quds Mosque (Casablanca) Mosque Al-Quds Mosque (Casablanca) Religious mosque in Casablanca with community services Diwan Mosque Mosque Diwan Mosque Historic mosque in Fes's old medina El-Oued Mosque Mosque El-Oued Mosque Historic mosque in Fès with traditional Moroccan architecture Grand Mosque of Tangier Mosque Grand Mosque of Tangier Historic Tangier mosque near medina and royal kasbah Lalla Abla Mosque Mosque Lalla Abla Mosque Mosque located in the Tangier metropolitan area Al-Hamra Mosque Mosque Al-Hamra Mosque Traditional mosque located in Fès historic district Al-Qarawiyyin Mosque (Morocco) Mosque Al-Qarawiyyin Mosque (Morocco) Historic mosque and oldest university in Fes Mosque Assunna Mosque Local Casablanca mosque with traditional Moroccan architecture Bab Doukkala Mosque Mosque Bab Doukkala Mosque Historic Marrakech mosque near the old medina Bab Guissa Mosque Mosque Bab Guissa Mosque Prominent Fez mosque adjacent to the old city Ben Salah Mosque Mosque Ben Salah Mosque Historic Marrakech mosque noted for Saadian-era architecture Mouassine Mosque Mosque Mouassine Mosque Historic Marrakesh mosque with adjacent madrasa and fountain Moulay Slimane Mosque Mosque Moulay Slimane Mosque Rabat mosque named after Sultan Moulay Slimane Sidi Bou Abid Mosque Mosque Sidi Bou Abid Mosque Mosque in Tangier, North Moroccan coastal city Simon Attias Synagogue Synagogue Simon Attias Synagogue Historic synagogue in Marrakesh's Jewish quarter Slat al-Azama Synagogue Synagogue Slat al-Azama Synagogue Historic synagogue in Marrakesh's old Jewish quarter

More Interests#

Morocco mosques FAQs#

Can non-Muslims enter mosques in Morocco?

Generally no. Almost all working mosques in Morocco are closed to non-Muslims. The main exception is the Hassan II Mosque in Casablanca, which runs guided tours, along with madrasas and mausoleums such as the Ben Youssef Madrasa and the Mausoleum of Mohammed V.

How much does it cost to visit the Hassan II Mosque?

Guided tours cost 140 dirhams for foreign adults, with reductions for students and children. Tours run several times a day except during prayers, with fewer on Fridays.

What should I wear to the Hassan II Mosque?

Cover your shoulders and knees, and wear shoes that are easy to take off, since you carry them during the tour. Women do not usually need a headscarf, but a scarf is useful.

Can I go inside the Kutubiyya Mosque in Marrakesh?

No. The Kutubiyya is open only to Muslims for prayer. You can walk around it and through its gardens freely, and the Ben Youssef Madrasa is the best religious interior you can visit in Marrakesh.

Can tourists visit the Qarawiyyin in Fez?

Not inside. Non-Muslims can look into the courtyard through the open doors without stepping in. The Al-Attarine Madrasa next door has a roof terrace with a view over the Qarawiyyin.

Why can't non-Muslims enter mosques in Morocco?

The ban was introduced under the French protectorate in the early 20th century and has stayed in place by custom and law. It applies to working mosques and the most important shrines.

What is a madrasa in Morocco?

A madrasa is a former residential college for Quranic and legal studies, usually built around a courtyard with a pool and student cells. Most of Morocco’s historic madrasas, built by the Merinids in the 14th century, are now open to visitors as monuments.

Is it OK to visit Morocco during Ramadan?

Yes. Sights stay open with shorter hours, and the evenings after iftar are lively. Avoid eating, drinking or smoking in public in daylight, and expect some restaurants outside tourist areas to close until sunset.