Discovering...
Discovering...

Five centuries of Saadian craftsmanship in the northern medina — here is everything you need to visit: entry fees, opening hours, what to see, and when to arrive.
Yasmine El Amrani· Marrakech & Atlas Editor
Marrakech-born travel writer who has spent the last decade walking the medina’s souks and the High Atlas trails above Imlil. She covers the Red City, Berber villages and day trips into the mountains. Marrakech · 12+ years covering Morocco
Published 23 June 2025 Last updated 21 April 2026
The Medersa Ben Youssef is the most architecturally extraordinary building most visitors to Marrakech never find on their own. It sits tucked behind the Ben Youssef Mosque in the northern medina, a ten-minute walk from the souks, and the entrance is easy to miss — a wooden door in a plain wall that gives no hint of what is inside. Step through and the courtyard opens in front of you: marble underfoot, a long reflective pool, three tiers of carved cedar and stucco rising to the sky, and geometric zellige tilework at a level of density you will not see anywhere else in the city.
At its peak in the sixteenth century this was the largest theological college in North Africa, housing close to 900 students in cells barely wide enough to turn around in. The contradiction between those austere dormitories upstairs and the overwhelming beauty of the courtyard below is part of what makes the building so compelling: it was built to inspire awe in the mind before the body was considered at all.
Entry costs around 70 MAD (roughly $7), no advance booking is needed, and the site is open daily. Arrive on a weekday morning before 10:30 and you will often have the courtyard almost to yourself. Below is everything you need to plan the visit well.
Quick-reference facts for planning your visit — fees and hours are indicative and may change; verify locally.
| Location | Rue Souk el-Khemis, Marrakech Medina (near Museum of Marrakech) |
| Opening hours | Daily 09:00–18:00 (last entry 17:30); may vary during Ramadan |
| Entry fee | ~70 MAD (~$7) adults; children under 12 free — indicative, verify locally |
| Time needed | 45 minutes to 1.5 hours depending on pace |
| Photography | Permitted throughout; tripods require prior approval |
| Best time to visit | Weekday mornings (09:00–10:30) before tour groups arrive |
Dress code: Shoulders and knees must be covered for all visitors regardless of gender. Remove shoes before stepping into the prayer hall. Scarves are available to borrow at the entrance if needed, though bringing your own is more practical.
The building rewards slow looking. This is a zone-by-zone guide to what you are seeing and what makes it significant.
A dark, narrow passage that releases suddenly into the blinding white courtyard — the contrast is deliberate, borrowed straight from mosque design. The carved cedar lintel overhead dates to the Saadian restoration in the sixteenth century.
The marble pool reflects the carved upper galleries and produces the photo most people have seen. At its edges, the lower walls are clad in geometric zellige in deep green, cobalt and ivory — each tessera cut by hand in the Fès tradition. Above the tile dado, three metres of stucco muqarnas scroll upward in floral arabesque.
The qibla wall at the far end of the sahn is the most densely decorated surface in the building. A carved cedar screen separates it from the courtyard; peer through and you see the mihrab niche, its honeycombed vault intact after five centuries.
Narrow wooden staircases climb to two upper galleries lined with 132 tiny dormitory rooms. The cells are barely large enough for a sleeping mat and a Quran stand — which puts the ambition of the decoration downstairs in a different light. Students lived here for free in exchange for memorising the Quran and studying fiqh.
A short climb above the top-floor gallery gives rooftop views over the northern medina towards the minaret of the Koutoubia. It is uncrowded, cooler, and a useful landmark for orienting yourself before you head back into the souks.

The original madrasa on this site was built under the Merinid dynasty in the fourteenth century — the same era that produced the Bou Inania Madrasa in Fès and Meknès. Merinid rulers used madrasas strategically: building them beside existing mosques signalled legitimacy and patronage of Islamic learning, and the Almoravid-founded Ben Youssef Mosque was one of the most prestigious sites in the Moroccan south.
The building you see today is overwhelmingly Saadian. In the mid-sixteenth century, Sultan Abdallah al-Ghalib demolished the Merinid structure and rebuilt it on a far grander scale, using the same Andalusian-trained craftsmen who decorated the Saadian Tombs a few streets south. The style is immediately recognisable: muqarnas vaulting, dense floral stucco above a dado of geometric zellige, carved cedar ceilings in the prayer hall. It was effectively a statement of dynastic ambition carved in stone and plaster.
The madrasa functioned continuously as a place of Quranic study until 1960, when it was closed and restored as a heritage monument. It was declared a UNESCO World Heritage site as part of the Medina of Marrakech in 1985.
The medersa alone is excellent value; combining it with nearby sites stretches your morning further.
~70 MAD per adult (~$7). No booking needed — pay at the gate. Children under 12 typically free.
A combined ticket (when available) costs ~120 MAD — both sites share a courtyard square and together take a comfortable half-day.
A private guide adds context that transforms the visit. Expect to pay 200–400 MAD for a 2-hour medina walk that includes the medersa.
The medersa is one of the northern medina's highlights, but understanding what you are looking at — the symbolic language of the muqarnas, how Merinid differs from Saadian carving, why the zellige patterns follow mathematical grids rather than freehand motifs — requires either significant background reading or a knowledgeable guide. A private guided tour of the medina that includes the medersa, the Mouassine Fountain, and the tanneries covers the city's architectural and social history in a connected way that self-guided exploration rarely achieves. The context makes the building three times as interesting.
Yes — unlike many active mosques in Morocco, the Medersa Ben Youssef is fully open to non-Muslim visitors. It ceased operating as a religious school in 1960 and has been a heritage monument since 1956. Modest dress is expected: shoulders and knees covered, and shoes must be removed before entering the prayer hall. There is no organised ticket queue; you simply pay at the entrance gate.
Entry is approximately 70 MAD (roughly $7 USD) per adult as of early 2026 — indicative, confirm at the gate as fees are revised periodically. Children under 12 typically enter free. A combined ticket with the adjacent Museum of Marrakech is sometimes available for around 120 MAD total, which makes sense if you want to see both in a single morning. No advance booking is needed; tickets are sold at the door.
The madrasa was first founded in the fourteenth century under the Merinid sultan Abu al-Hassan, making it roughly contemporary with the great madrasas of Fès. It was substantially rebuilt and expanded in the sixteenth century by the Saadian sultan Abdallah al-Ghalib, which is why the surviving decoration reflects the lavish Saadian aesthetic you see at the nearby Saadian Tombs. At its peak it housed around 900 students from across the Islamic world, making it the largest theological college in North Africa.
Most visitors spend 45 minutes to an hour and a half. The courtyard deserves unhurried time — the light changes dramatically as the sun moves across it, and the geometric details reward close looking. If you climb to the student cells and the roof terrace, budget the full 90 minutes. Rushing through in 20 minutes is possible but you will miss most of what makes it special. Come alone or in a small group; large tour groups make quiet contemplation difficult.
Absolutely — the Museum of Marrakech occupies the Mnebhi Palace directly across a small square from the madrasa entrance, and the walk between them is about 60 seconds. The museum displays Moroccan art, manuscripts and ceramics in a nineteenth-century palace setting and takes another 45 to 60 minutes. Doing both in a single morning is the natural choice, and a combined ticket (when available) saves a few dirham. Finish at the nearby Ben Youssef Mosque square for a mint tea before heading deeper into the souks.
Standard hours are 09:00 to 18:00 daily, with last entry at around 17:30. During Ramadan hours shift, sometimes opening later and closing earlier, so it is worth checking locally or at your riad the morning of your visit. The site is closed on a small number of public holidays. Mornings on weekdays — arriving at opening time around 09:00 — give you the courtyard largely to yourself before tour groups arrive mid-morning.
The madrasa sits in the northern medina, roughly a 15-minute walk from Jemaa el-Fna through the spice souks. The most straightforward route heads north on Rue Mouassine past the Mouassine Fountain, then follows signs for the Museum of Marrakech. Taxis cannot enter the narrow streets; agree a fare to the Ben Youssef Mosque and walk the final two minutes. A local guide can be invaluable here — the lanes surrounding the madrasa are part of the original Almoravid city plan and every corner holds a story.
Plan it with a local expert
Crafting extraordinary journeys through Morocco's timeless landscapes. 100% private journeys, handcrafted around you.
from $2,054Essential Morocco: Imperial Cities Circuit
from $5,978Sahara to Sea: Morocco Complete