
Ben Youssef Madrasa
مدرسة ابن يوسف
About Ben Youssef Madrasa
The Ben Youssef Madrasa was, for centuries, among the most important Quranic schools in the western Islamic world, housing hundreds of students who came to study in Marrakech. Set deep in the medina near the Ben Youssef Mosque, the complex is a concentrated showcase of Moroccan craftsmanship: zellige tilework, carved cedarwood, and intricately worked stucco wrap nearly every surface.
The heart of the madrasa is its rectangular central courtyard, anchored by a long reflecting pool and framed by arcades. Beyond it lies the prayer hall, while the upper floors are honeycombed with small student cells that look down onto the court. The decoration grows richer as it rises — geometric tile at the base, calligraphic and floral stucco above, and carved cedar lintels and screens crowning the composition.
The building reopened to visitors after a substantial multi-year restoration that cleaned and stabilised the decoration and reworked the visitor route. As a result it presents extremely well today, and its courtyard is one of the most rewarding photographic subjects in Marrakech.
Because the madrasa no longer functions as a school, the entire complex — including the prayer hall and student quarters — is open to visitors of all faiths, a contrast with Marrakech's active mosques.
Historical Context
A school on this site dates to the Marinid period in the 14th century, but the madrasa as seen today was largely rebuilt in the mid-16th century under the Saadian sultan Abdallah al-Ghalib. The Saadians lavished resources on the project, and the resulting decoration reflects the dynasty's wealth and its embrace of Andalusian-influenced ornament.
At its height the madrasa accommodated a large body of students in its many cells, who studied religious sciences alongside the curriculum of the adjacent mosque. It remained in use as a teaching institution into the 20th century before closing and later being conserved as a heritage monument.
A comprehensive restoration in recent years addressed decades of wear, returning crispness to the carved plaster and brilliance to the zellige. The work also improved interpretation and circulation, helping visitors understand how the building functioned as a place of both study and residence.
Today the Ben Youssef Madrasa stands as one of the finest accessible examples of Saadian-era architecture in Marrakech, complementing the nearby Saadian Tombs as a record of the dynasty's artistic legacy.
Highlights
What to See
- The arcaded central courtyard and pool
- Carved cedar lintels and screens
- Stucco calligraphy and floral panels
- Zellige tilework in geometric patterns
- The prayer hall and mihrab
- Small student cells on the upper floors
- Courtyard views from the galleries above
- Decorated entrance corridor
Photography Tips
Best Time to Shoot
Just after opening, before the courtyard fills
Best Locations
- Courtyard centre for symmetrical reflections in the pool
- Arcade arches framing the court
- Upper galleries looking down on the courtyard
- Doorways for zellige and stucco details
Pro Tips
- The reflecting pool doubles the architecture — shoot it calm
- Morning light reaches the courtyard floor more evenly
- Arrive early; the space gets crowded
- Look up — the cedar ceilings reward attention
- Be patient and share popular vantage points
Travel Tips
- Visit early to photograph the courtyard without crowds
- Combine with the nearby Saadian Tombs and the medina souks
- Modest dress is appreciated even though it is now a monument
- A guide adds useful context on the decoration and history
- Confirm current opening hours and fees on arrival
- Allow time to climb up to the student cells
- The surrounding lanes are easy to get lost in — note your route
- Combination tickets with other sites are sometimes offered
Photo Gallery

The carved cedar and zellige decoration typical of the madrasa

Arcaded courtyard architecture in the Marrakech medina

Hand-cut zellige in classic geometric patterns

Tiled courtyard and fountain detailing of Marrakech's historic monuments
Visiting Information
Nearby Attractions
Accessibility
- Ground-floor courtyard wheelchair accessible
- Upper cells require stairs
- Smooth courtyard flooring
- Seating available in shaded arcades