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.
Tips

Experiences you don't want to miss

All tips →

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.
Watch

See Ben Youssef Madrasa in motion

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

☀️
14°C
Clear
Mon
☀️
21°
7°
Tue
⛅
23°
7°
Wed
⛅
25°
8°
Thu
☀️
25°
7°
Weather data: Open-Meteo
Reviews via Google

What travellers say about Ben Youssef Madrasa

4.7 13,873 Google reviews
★★★★★

A very interesting place to visit! I was fascinated by how beautifully it was restored and by the amount of craftsmanship that went into bringing it back to life. There was a bit of a line, but since it was included in our tour, we were able to use the faster entrance. The ticket was around 50 dirhams and it felt much more affordable compared with some of the other attractions in Marrakech. There isn’t a huge amount to do besides walk around, look at the architecture and ruins, and learn about the history, but that’s really the beauty of it. Definitely worth visiting!!

Rhealaine Sayson a month ago · via Google
★★★★★

A historic preserved former palace in the heart of Marekesh. Located in the souk near Jamal fnar. The craftsmanship used on the floors, walls and ceilings is outstanding. Classic islamic geometric designs in mosaic tiles, and relief carving. There's a fountain in the main courtyard, and the former hammam's have been repurposed to show the work of a local artist. Highly recommended.

EFlatMajor7 2 weeks ago · via Google
★★★★★

Well worth a visit. Probably enjoyed seeing the beautiful architecture here as much as the Bahia Palace. Although the Medersa/Madrassa is pretty busy it is much easier and less frantic to find your own way around and find some quiet spots throughout your visit. An audio guide is available, but we did not use it and still felt we got a lot out of the visit. As good as some of the better known examples of Moorish architecture in Andalusia, though on a smaller scale.

Chris Bourne 3 weeks ago · via Google
★★★★★

Medersa Ben Youssef is one of Marrakech’s most beautiful and worthwhile historical sights. This former Islamic college is a masterpiece of Moroccan architecture, filled with intricate zellige mosaics, delicate stucco carvings, richly detailed cedarwood ceilings, and a stunning central courtyard with a reflecting pool. The building has an exceptionally calm, almost timeless atmosphere. It is easy to spend time simply admiring the craftsmanship—the details are remarkable wherever you look. The small former student cells on the upper floors add another layer to the visit, giving a real sense of the building’s original purpose and daily life within the school. Following its restoration and reopening, it is presented in excellent condition. It is worth arriving at opening time or later in the afternoon to avoid the largest tour groups and enjoy the courtyard in a quieter atmosphere. Allow around 45–60 minutes for the visit, or longer if you enjoy photography and architecture. Admission is reasonably priced at about 50 MAD for international adult visitors, and tickets are usually available at the entrance, so advance booking is generally unnecessary. Its location near the Marrakech Museum and Almoravid Koubba also makes it an easy and rewarding stop while exploring the northern medina. A highly recommended visit: elegant, atmospheric, and one of the finest places in Marrakech to appreciate the extraordinary detail of traditional Moroccan design.

Marcin Ba a month ago · via Google
★★★★★

A beautiful building and good exhibition rooms that were informative. Only downside is it was unclear to see how the rooms were originally laid out/used so it would have been nice to have a display room. The detail for restoration is incredible and can tell the time and effort gone into it. Not too busy.

Jessica Handley 2 weeks ago · via Google

↡ 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