Every country, and the places worth the trip 26,398 places across 240 countries Guess the country
Meridiela.

Ben Youssef Madrasa

The largest Quranic school in Morocco, a Marrakech courtyard of carved cedar and zellij ringed by more than a hundred tiny student cells.

Updated 21 October 2026

UNESCO World Heritage

WhereMarrakech-Safi
Nearest cityMarrakech
Best seasonMarch to May and October to November
Time to allowAn hour
Getting thereIn the northern Marrakech medina, near the Ben Youssef mosque and the museum quarter
EntryCharged

Founded in the fourteenth century and rebuilt on a much larger scale by the Saadians in the sixteenth, the Ben Youssef Madrasa housed hundreds of students who studied at the neighbouring mosque and slept in cells around the upper galleries. It stopped functioning as a school in the twentieth century and reopened as a monument after a long restoration. The central courtyard is the set piece: a shallow marble basin, walls of zellij below carved stucco and a band of Kufic inscription, all under carved cedar. Behind it the prayer hall has a fine mihrab and pine-cone capitals. Upstairs the cells are startling by contrast, small bare rooms with a single window, some looking into the courtyard and some into narrow light wells.

History

The madrasa takes its name from the Ben Youssef Mosque beside it, founded as the city's main mosque by the Almoravid sultan Ali ibn Yusuf (reigned 1106-1142), and al-Ifrani records that the first madrasa on the site was founded by the Marinid sultan Abu al-Hasan (reigned 1331-1348). The Saadian sultan Abdallah al-Ghalib rebuilt it, completing it in 1564-1565 according to an inscription, and it became the largest madrasa in the Maghreb, said to hold more than 800 students. It closed in 1960, was refurbished and reopened as a historic site in 1982, and after a restoration from November 2018 reopened in April 2022 (Wikipedia, Ben Youssef Madrasa).

What's there

  • The courtyard - a marble basin between zellij walls, carved stucco and cedar screens.
  • The student cells - more than a hundred bare rooms off the upper galleries.
  • The prayer hall - a carved mihrab with palm and pine-cone capitals.
  • The Kufic band - the inscribed frieze running above the tilework of the main court.

When to go

Arrive at opening, or in the last hour, if you want the courtyard without a crowd standing in it; the middle of the day is when the tour groups arrive together. Spring and autumn are ideal. The upper cells are hot and airless in summer afternoons.

Before you go

The courtyard is small and it is photographed constantly, so waiting for a clear frame takes patience you may not have. The upper cells are reached by narrow, uneven stairs and low doorways, and the galleries have low parapets. Ticket prices have risen sharply since the restoration for what is a forty-five minute visit.

Nearby

The Marrakech museum quarter and the Almoravid Koubba are next door; the souks begin immediately south.

Key facts

Local nameمدرسة ابن يوسف (Arabic)
Heritage statuspart of UNESCO World Heritage Site; Moroccan cultural heritage
Location31.6320° N, 7.9860° W · map

Source: Wikidata, item Q1560540, read on 18 October 2026.

What to pack for Ben Youssef Madrasa

Chosen from what this place is for. Tap a kit for the full checklist.

  • Comfortable walking shoes - Sightseeing means kilometres of pavement and cobbles daily. Find on Amazon
  • Modest clothing - Shoulders and knees covered - the single most common requirement. Find on Amazon
  • A slim anti-theft daypack - Zips that close properly; keep it in front in crowds and on transit. Find on Amazon
  • A scarf or shawl - To cover the head or shoulders on entry; women especially at mosques. Find on Amazon

Some links on this page are Amazon affiliate links - if you buy through them we may earn a small commission at no extra cost to you.

All packing kits

Plan your trip

Where to start if Ben Youssef Madrasa is going on the list.

Booking links on this page are affiliate links - if you book through them we may earn a small commission at no extra cost to you. It never changes what we write about a place.

Opening times, ticket prices and seasonal closures change - check the official source before you go: official site.

← More landmarks & history in Morocco

One place a week.

A short Friday email about one place worth knowing.