City

Ben Youssef Madrasa

Ben Youssef Madrasa
Photo by Valentin Vesa on Pexels
Ben Youssef Madrasa
Photo by Nicola Toscan on Pexels
Ben Youssef Madrasa
Photo by Uiliam Nörnberg on Pexels
Ben Youssef Madrasa
Photo by Piotr Arnoldes on Pexels
Ben Youssef Madrasa
Photo by ubeyonroad on Pexels
Ben Youssef Madrasa
Photo by Abduljaleel tijjani Muhammad on Pexels

Above the entrance gateway, an inscription reads: "You who enter my door, may your highest hopes be exceeded." It sets an expectation, and the madrasa keeps it. Step through the dark, tile-lined vestibule and the central courtyard opens up — a near-square space of carved cedar, zellij mosaic in cobalt and ochre, and a long shallow pool that doubles everything in reflection.

The Ben Youssef Madrasa was built in 1564–65 under the Saadian sultan Abdallah al-Ghalib, on a site where a Marinid madrasa had stood since the 14th century. At completion it was the largest madrasa in the Maghreb, housing upwards of 800 students across 134 small rooms. It closed in 1960, reopened as a heritage site in 1982, and emerged from a major restoration in April 2022.

💛 What travellers fall for

People who come back tend to head straight for the upper dormitory galleries before the tour groups arrive — the view down into the courtyard from the second-floor corridors is unhurried and close. The prayer hall at the southeastern end, where an 11th-century marble basin from Cordoba now sits after the restoration, often gets skipped. It shouldn't be.

Good to know
Walk from Jemaa el-Fna through the souks — around 10 to 15 minutes. Arrive by 9:30 AM on a weekday or in late afternoon for the quietest experience. Cash only at the ticket window: 50 DH adults, 10 DH children under 12. Leave the large bag at the riad; the corridors are narrow.

Deals in Ben Youssef Madrasa

Book directly at the provider
The story

How Ben Youssef Madrasa came to be

A Marinid madrasa first occupied this site under Sultan Abu al-Hasan in the 14th century, attached to the Ben Youssef Mosque — itself founded by the Almoravid sultan Ali ibn Yusuf in the 12th century as Marrakech's principal place of worship. The current structure dates from 1564–65 CE, when the Saadian sultan Abdallah al-Ghalib ordered a complete rebuilding. His architects drew on Moroccan and Andalusi traditions: Carrara marble underfoot, Atlas cedar overhead, zellij tilework rising to calligraphic friezes and stucco carved so finely it reads more like lace than plaster.

For nearly four centuries it functioned as a working school of Islamic learning before closing in 1960. A restoration opened it to visitors in 1982, and a second, more thorough intervention — begun November 2018 — brought it back in April 2022, including the reinstallation of an 11th-century marble basin from Cordoba that Ali ibn Yusuf had originally imported for the adjacent mosque.

People & landmarks

Who and what shaped it

People who shaped it

Abdallah al-Ghalib
Saadian sultan (r. 1557–1574) who commissioned and built the current madrasa structure in 1564–65 CE.
Ali ibn Yusuf
Almoravid Sultan (r. 1106–1142) who founded the adjacent Ben Youssef Mosque; imported the 11th-century Cordoba marble basin now displayed in the madrasa prayer hall.
Abu al-Hasan
Marinid Sultan (r. 1331–1348) who founded the first madrasa on this site during the 14th century.

Landmark buildings

Central Courtyard
Nearly square space (40 × 43 m) with 21.90 × 16.50 m rectangular pool; surrounded by carved cedar, zellij mosaic in cobalt and ochre, and calligraphic friezes.
Student Dormitories
134 small rooms across 13 courtyards (54 ground floor, 80 upper) designed to house upwards of 800 students; cramped quarters typical of 16th-century Islamic education.
Prayer Hall
Large chamber at southeastern end of courtyard with mihrab niche featuring rich stucco decoration and display of 11th-century Cordoba marble basin.
Vestibule/Entrance
Single street entrance with square vault sculpted in muqarnas; dark tile-lined passage that opens onto the central courtyard.
Ben Youssef Mosque
Adjacent 12th-century mosque founded by Ali ibn Yusuf; original principal place of worship in Marrakech, connected to the madrasa complex.
Practical

Plan your visit

On the map

When to go

October through April is the most comfortable window — mornings are cool enough to linger in the courtyard without the sun bearing down. Summer visits are possible but the medina heat is relentless by midday, and the madrasa offers little shade once you leave the covered vestibule.

Right now

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

↡ Shopping areas


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