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

☀️
30°C
Clear
Fri
33°
20°
Sat
☀️
36°
19°
Sun
38°
21°
Mon
37°
22°
Weather data: Open-Meteo
Reviews via Google

What travellers say about Ben Youssef Madrasa

4.7 12,884 Google reviews

Medersa Ben Youssef in Marrakech is absolutely worth visiting and, in my opinion, one of the most impressive places in the whole city. The complex is surprisingly large, with many beautifully preserved rooms and corridors that you can freely explore. Every corner feels different, and the architecture is incredibly detailed – carved wood, intricate tiles, and stunning geometric patterns everywhere you look. What I also appreciated is that the ticket pricing is fair and transparent – no feeling of being overcharged or “tourist traps,” which can sometimes happen in Marrakech. On top of that, it’s a dream spot for photos. The light, symmetry, and craftsmanship make it one of the most photogenic places in the entire medina. Overall, it’s definitely a must-see attraction and honestly one of the highlights of Marrakech.

Natalia Głodek a month ago · via Google

Absolutely stunning. Mesmerizing. The architecture, the intricacy. Id say this place is easily a MUST GO TO place when you are in Marrakech. The sun reflecting of marvellous marble tiles gives this place true Moroccan vibes. Buying tickets didnt take long, and option to pay by card as well. Family friendly and kids will have fun too. Just remember to go early in the morning to avoid massive crowds.

Iqy Haziq Mohamad 3 months ago · via Google

Amazing historic building with beautiful architecture. It was fascinating to explore and see the rooms where students once lived and studied. The only downside was the number of visitors more interested in social media photos than the history of the site. Seeing people leaning against the historic walls and treating it as a photo backdrop took away from the atmosphere somewhat. Still, a must-visit in Marrakesh.

Sammy S 2 months ago · via Google

The madrasa in Marrakech is a very beautiful and atmospheric place. It was reopened a few years ago after renovation, and it was definitely worth it. Everything is very clean, with beautiful tiled courtyards, and three floors open to visitors. There are also clean and working restroom facilities. I recommend coming right at opening time around 9:00 — there are very few people, so you can take great empty photos. Another good tip is to go upstairs while a group is downstairs, and then switch — a nice little hack to avoid crowds and get better shots.

Yuliya Zhyrnova 3 months ago · via Google

Wonderful to see such a beautiful historic place kept alive to be enjoyed by so many tourists. Was particularly great to see the student’s rooms and gain insight into what life living there would have been like. Only thing to note is there isn’t much written guidance so maybe read up on the historical context before visiting.

Jess 3 months 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