Ben Youssef Madrasa Marrakech: Visitor Tips from a Local Guide

The Ben Youssef Madrasa is open every day from 9 am to 7 pm (9 am to 4:30 pm during Ramadan). Allow 45 minutes to an hour, and yes, it is worth it for the finest courtyard in the Marrakech medina.
Come at 9 am, when the doors open. By late morning the tour groups arrive, a queue often forms at the entrance and the courtyard gets loud. Late afternoon is the second-best slot.
Want to visit the Ben Youssef Madrasa with a guide?
The Story Behind the Ben Youssef Madrasa
A madrasa is a residential college. Young men came here from across Morocco to study the Quran, law and the religious sciences, living in small rooms around the courtyard and studying in the mosque next door.
A Marinid Foundation, a Saadian Rebuild
The first madrasa on this site was founded in the 14th century under the Marinid sultan Abu al-Hasan. What you see today is the work of the Saadian sultan Abdallah al-Ghalib, who rebuilt it on a much larger scale. An inscription dates the completion to around 1564–65.
It became one of the largest madrasas in North Africa, with around 130 student rooms. Sources say it housed up to around 800 students at its peak, though that figure is hard to pin down.
From School to Monument
The madrasa stopped teaching in 1960 and opened to visitors in 1982. It closed for a major restoration in 2018 and reopened in 2022. The name comes from the Ben Youssef Mosque beside it, founded by the Almoravid sultan Ali ibn Yusuf in the 12th century.
What to See Inside
The Entrance Corridor
You enter through a long, dim passage with no hint of what is coming. That is deliberate. The plain walls make the courtyard feel even brighter when you step out.
What to look for: The carved cedar ceiling of the vestibule just before the courtyard.
The Courtyard and Pool
This is the heart of the building. A long, shallow pool runs down the middle, reflecting the walls. The decoration rises in three layers: zellige tiles at the bottom, carved stucco in the middle, and carved cedar wood at the top under the eaves.
When I bring guests here, I ask them to stand at the near end of the pool for a minute before taking photos. Once you see the three layers, you start reading every Moroccan palace the same way.
What to look for: Arabic calligraphy worked into the stucco bands, and the way no two zellige panels repeat exactly.
The Prayer Hall
At the far end of the courtyard is the prayer hall, the most richly decorated room in the madrasa. The mihrab, the niche facing Mecca, is covered in fine stucco.
What to look for: The fine stucco around the mihrab, and the carved marble basin from Al-Andalus, made in the early 11th century, which is kept in the madrasa.
The Student Rooms Upstairs
Narrow stairs lead to the upper floor, where small rooms are arranged around tiny inner courtyards. Some rooms are little more than a sleeping space with a window onto the main courtyard.
What to look for: The view down onto the pool from the upper windows, the best photo angle in the building.
Visitor Tips: Tickets, Hours and How to Get There
The madrasa sells tickets on its official website, which is the easiest way to skip part of the wait in high season. From Jemaa el-Fna, walk north through the souks for about 15 to 20 minutes. The lanes twist, so expect to ask for directions or follow your map closely.
Practical Information
| Detail | Information |
|---|---|
| Entrance fee | Check the current price on the official site or at the gate (included in your quote if you add it to your tour) |
| Opening hours | 9 am to 7 pm daily; 9 am to 4:30 pm during Ramadan (check before you go) |
| Time needed | 45 minutes to 1 hour |
| Best time | At opening, 9 am, or late afternoon |
| Photography | Personal photos are generally allowed; ask staff before using a tripod or drone |
| Accessibility | Courtyard and prayer hall are on the ground floor; the student rooms are up narrow, steep stairs |
| Location | Ben Youssef area of the northern medina, beside the Ben Youssef Mosque and the Marrakech Museum |
With or Without a Guide?
You can visit alone, but there are few signs explaining what you see. A guide also saves you the walk through the souks guessing at turns. If someone offers to guide you, ask to see their official licence card from the Ministry of Tourism. On our private Marrakech city tour, the madrasa ticket is included in your quote if you choose it.
What to Do Nearby
The madrasa sits in one of the oldest corners of the Marrakech medina, so plan a couple of hours for the area.
- Almoravid Koubba (Koubba Ba’adiyn): a 2-minute walk. A small 12th-century ablutions pavilion, one of the very few Almoravid buildings left in the city.
- Marrakech Museum (Dar Mnebhi): a 2-minute walk. An early 20th-century palace with a large covered courtyard and changing exhibitions.
- The tanneries: around 15 minutes east toward Bab Debbagh. Read our Marrakech tanneries visitor guide before you go.
- The souks: you walk through them on the way back. Our Marrakech souks shopping guide covers what to buy and how to bargain.
For a full day, pair the madrasa with the Bahia Palace and the Saadian Tombs in the south of the medina, or see our one day in Marrakech plan.
Conclusion
The Ben Youssef Madrasa is the best single lesson in Moroccan craft you can get in an hour. Go early, look up, and take the stairs to the student rooms.
Frequently Asked Questions
Is the Ben Youssef Madrasa worth visiting?
Yes. It has the finest courtyard in the Marrakech medina, with zellige, carved stucco and cedar wood in one space, plus the prayer hall and the old student rooms. It takes less than an hour and sits next to the Marrakech Museum and the Almoravid Koubba.
How long do you need at the Ben Youssef Madrasa?
Plan 45 minutes to an hour. That gives you time for the courtyard, the prayer hall and the student rooms upstairs. Add 15 to 20 minutes each way for the walk from Jemaa el-Fna through the souks, and extra time if there is a queue at the entrance.
Can I buy Ben Youssef Madrasa tickets online?
Yes. The madrasa sells tickets through its official website, medersabenyoussef.ma, which also lists the current prices and hours. Buying ahead helps in busy months. If you add the madrasa to a private tour with us, the ticket is included in your quote.
What is the best time to visit the Ben Youssef Madrasa?
Go at 9 am, when it opens. Tour groups usually arrive from late morning and the courtyard fills up quickly. Late afternoon is quieter than midday and the light in the courtyard is softer for photos. Weekday mornings tend to be calmest.
Is the Ben Youssef Madrasa good to visit with kids?
Yes, for a short visit. Children usually enjoy exploring the small student rooms and peering down from the upper windows. Keep a close eye on them on the steep stairs and around the open pool. The visit is short enough that younger kids rarely get bored.
Planning a visit? Our licensed local guides can include the Ben Youssef Madrasa in a private city tour. Talk to our team to plan your day.
Want this with a Marrakech private tour guide? We plan it with you before you arrive.
Planning a trip to Marrakech?


