Can you visit the Ben Youssef Mosque in Marrakech?
The short answer
Our team's answerNot inside if you are not Muslim: the Ben Youssef Mosque is a working mosque and closed to non-Muslim visitors. What you can visit is next door: the Ben Youssef Madrasa, the old theological college built beside it in the 16th century, and the Almoravid Qubba, a small 12th-century domed pavilion just to the south.
Serenity Morocco Expert Team
Travel Designer · Staff · October 2026
Free, no obligation. A planner in Casablanca reads it and replies with a day-by-day route.
Question
The full answer
A common question when planning a trip to Morocco, answered honestly by our travel designers.
The Ben Youssef Mosque stands in the north of the Marrakech medina and gives its name to the whole neighbourhood. It is named after the Almoravid ruler Ali ibn Yusuf, who built a great congregational mosque here in the early 12th century, at a time when it was the main mosque of the young city. Almost nothing of that first building survives. After centuries of decline it was rebuilt several times, and the mosque you see today dates from a reconstruction completed in 1819–20.
It is still an active place of worship, and like almost all mosques in Morocco it is not open to non-Muslim visitors. From the lanes outside you can see its minaret, but there is no visit inside. If you are travelling with a guide, ask them to point out how the mosque, the madrasa and the qubba fit together, because the three are easy to confuse on a map.

The building most people are actually looking for is the Ben Youssef Madrasa, the theological college that the Saadian sultan Abdallah al-Ghalib built just east of the mosque in 1563–64, giving the mosque new life as the mosque of scholars. The madrasa is open to visitors as a historic site and is one of the best-known interiors in Marrakech; our separate guide to it covers what you will see inside. Check locally for its opening hours before you go.
A few steps to the south is the Almoravid Qubba, a small domed pavilion from the early 12th century that was buried under several metres of later debris until it was excavated in the 20th century. It is one of the very few Almoravid buildings left in Marrakech, and the carved decoration inside its dome is worth the short visit. The street fountain known as Shrob ou Shouf, built under the Saadians, is also nearby.
Plan this corner of the medina as one stop: walk up from Jemaa el-Fnaa through the souks, see the madrasa and the qubba, and look at the mosque from outside. Dress modestly, and keep your voice down near the mosque at prayer times.
If you are short of time, this corner of the medina rewards an early start, before the lanes fill and the tour groups arrive.
- marrakech
- ben youssef mosque
- ben youssef madrasa
- almoravid
- medina
- mosque etiquette
Serenity Morocco Expert Team — Travel Designers, Serenity Morocco Tours. Answered October 2026.
More questions on this
Is the Ben Youssef Mosque the same as the Ben Youssef Madrasa?
No. The mosque is a working mosque; the madrasa is the 16th-century theological college built beside it, which is open to visitors as a historic site.
How old is the Ben Youssef Mosque?
It was founded in the early 12th century, but the present building dates from a reconstruction completed in 1819–20.
After you ask for a quote
What you get within 24 hours
Your proposal contains
- A day-by-day route, with the driving time between stops
- Stays matched to your style (riads, kasbahs, desert camps or hotels), named so you can look them up
- Which moments are private to you, and which are shared, such as a camp’s dining tent
- An itemised quote: what is included and what is not
- Who is planning your trip, and how to reach them on WhatsApp
- Free, with no obligation to book
Before you pay a deposit, we confirm
- Opening days for the places on your route, including Friday and holiday closures
- Meal stops along the way, and any dietary needs
- Prayer or Shabbat timing, if it matters to you
- Step-free access, wherever you need it
- The vehicle class for your group and your luggage
Before you pay a deposit, we confirm
- Opening days for the places on your route, including Friday and holiday closures
- Meal stops along the way, and any dietary needs
- Prayer or Shabbat timing, if it matters to you
- Step-free access, wherever you need it
- The vehicle class for your group and your luggage
Every trip is private and priced to your dates, so there is no fixed price list. Ask, and the proposal shows the full cost before anything is booked.
From the answer to the trip
Marrakech, privately, with a local guide
The medina makes sense in a morning with a local guide: the souks, palaces and Jemaa el-Fnaa without the wrong turns, then the Atlas or the desert when you are ready.
- 3 days · MarrakechMarrakech Weekend Escape
- 6 days · Fes & MarrakechMedina Heritage Walking Tour
- 5 days · High AtlasAtlas Mountains Adventure

A planner in Casablanca replies with a day-by-day route and a quote within 24 hours.
Ask a follow-up question
Something this answer does not cover? Send us your question and our travel designers will read it.