Area

Medersa Ben Youssef

Medersa Ben Youssef
Photo by Valentin Vesa on Pexels
Medersa Ben Youssef
Photo by Nicola Toscan on Pexels
Medersa Ben Youssef
Photo by Uiliam Nörnberg on Pexels
Medersa Ben Youssef
Photo by Piotr Arnoldes on Pexels
Medersa Ben Youssef
Photo by ubeyonroad on Pexels
Medersa Ben Youssef
Photo by Zak Chapman on Pexels

Step through the dark entrance corridor — a narrow passage of coloured tiles that feels almost theatrical in its contrast — and the Ben Youssef Madrasa opens into a courtyard that stops you mid-stride. A shallow rectangular pool, jade-tiled, mirrors the carved cedar screens and horseshoe arches above it. The city noise, which felt so insistent in the alleys outside, simply disappears behind the soaring walls.

Built in the sixteenth century to house up to 800 students of Islamic theology and law, this was once the largest madrasa in the Maghreb. The 130 dormitory cells stacked around the courtyard give it a monastic quality — you can stand in a doorway and understand, without much imagination, what it meant to study here.

💛 What travellers fall for

People who come back tend to arrive just after opening, around nine, when the courtyard light is low and the pool still. They note the detail on the carved stucco — bands of calligraphy above zellij tilework above cedar latticework, each layer distinct — and say it only reads properly when the crowds thin. The souk Anaal just outside is worth a slow look on the way out.

Good to know
On foot from Jemaa el-Fna, allow fifteen minutes through the medina lanes. Tickets are cash-only at the door — 50 DH for adults. Early morning or late afternoon keeps the courtyard quieter. Upper dormitory levels involve several flights of stairs; the ground floor and courtyard are manageable without them.
The story

How Medersa Ben Youssef came to be

The site's first madrasa was commissioned by the Marinid sultan Abu al-Hasan in the fourteenth century, part of a wider Marinid programme of building religious schools across Morocco. That structure is gone. What stands today was raised by the Saadian sultan Abdallah al-Ghalib, completed in 1564–1565, and named for the adjacent Ben Youssef Mosque — itself founded centuries earlier by the Almoravid ruler Ali ibn Yusuf.

The madrasa functioned as a place of study and residence until 1960, when it closed. Restored and reopened to visitors in 1982, it underwent a second, more thorough restoration between 2018 and 2022. The cedar used in the screens came from the Atlas Mountains; the marble underfoot is Italian Carrara.

People & landmarks

Who and what shaped it

People who shaped it

Abdallah al-Ghalib
Saadian sultan who commissioned and completed the current madrasa structure in 1564–1565 CE.
Abu al-Hasan
Marinid sultan (r. 1331–1348) who founded the first madrasa on this site during the 14th century.
Ali ibn Yusuf
Almoravid Sultan (r. 1106–1142 CE) who founded the adjacent Ben Youssef Mosque, for which the madrasa is named.

Landmark buildings

Central Courtyard
40 by 43 meter courtyard with jade-tiled pool, carved cedar screens, horseshoe arches, and zellige mosaics; heart of the madrasa.
Student Dormitory Cells
130 rooms arranged on two levels around the courtyard, originally housed up to 800 theology and law students.
Prayer Hall and Ablutions Chamber
Ground floor northeastern chamber decorated with zellij tilework, calligraphic friezes, and carved cedar wood from the Atlas Mountains.
Practical

Plan your visit

On the map

When to go

Spring (March to April) and autumn (late September through October) offer the most comfortable conditions for moving slowly around an open courtyard — warm without the intensity of summer, when midday temperatures regularly reach 36°C or above. Winter visits are cooler and sometimes rainy, but the madrasa itself is largely sheltered.

Right now

28°C
Partly cloudy
Sat
40°
24°
Sun
38°
24°
Mon
38°
22°
Tue
41°
22°
Weather data: Open-Meteo

Background & history adapted from Wikipedia (CC BY-SA) · specs from Wikidata (CC0) · weather from Open-Meteo · map data © OpenStreetMap contributors · photos from Wikimedia Commons / Unsplash with per-image credit. No third-party reviews or social posts reproduced.

Top