Ben Youssef Madrasa Marrakech: The Most Beautiful Courtyard in the Medina

Madrasa with zellige tiles in Fez medina – madrasa de Fez

Quick answer: The Ben Youssef Madrasa is a former Koranic school in the north of the Marrakech medina and one of the most beautiful buildings in Morocco. Founded in the 14th century and rebuilt in the 1560s by the Saadian dynasty, it has a marble courtyard with a reflecting pool framed by carved cedar, stucco and zellige, and over a hundred tiny student rooms upstairs. Allow 45 minutes and come early.

History

A madrasa existed here from the Marinid period in the 14th century, but the building you see dates from the 1560s, when the Saadian sultan Abdallah al-Ghalib rebuilt and enlarged it. For centuries it was one of the largest Islamic colleges in North Africa, hosting students of theology and law. It stopped functioning as a school in the 20th century, became a historic monument and reopened in 2022 after a major restoration.

What to see

  • The central courtyard – a rectangular pool reflecting walls covered in zellige at the bottom, carved stucco in the middle and cedar wood at the top.
  • The prayer hall – with a richly decorated mihrab and dome.
  • The student cells – more than a hundred small rooms around upper courtyards, where students lived with little more than a mat and a lamp.
  • The windows – the views from the upper floors down into the courtyard are the best photo spots.

Practical information

The madrasa usually opens daily from morning to early evening. Tickets are sold at the entrance; check current prices locally. It gets crowded from late morning, so come at opening time. The madrasa is about 10 minutes’ walk north of Jemaa el-Fna through the souks.

Nearby

  • Marrakech Museum – in a 19th-century palace next door, with temporary exhibitions.
  • Almoravid Koubba – one of the few surviving Almoravid monuments in Morocco.
  • Maison de la Photographie – historic photos and a rooftop café.
  • The souks – the madrasa sits at the heart of the craft souks; read our souk shopping guide.

Compare with Fes

If you love this kind of architecture, Fes has several more madrasas, including the Bou Inania and Al Attarine. A guided tour of Fes includes the best of them.

Frequently asked questions

Is the Ben Youssef Madrasa open?

Yes. It reopened in 2022 after restoration and is usually open daily. Check current hours locally.

How long does it take to visit the Ben Youssef Madrasa?

About 30 to 45 minutes, longer if you love photography or visit with a guide.

Why is the Ben Youssef Madrasa famous?

For its courtyard combining zellige tiles, carved stucco and cedar wood, one of the finest examples of Saadian architecture.

Can non-Muslims visit the Ben Youssef Madrasa?

Yes. Unlike active mosques, the madrasa is a historic monument open to all visitors.

Keep reading

Written by the Todo Marruecos Tours team, local guides and drivers based in Morocco. Last updated: November 2026.

Leave a Reply

Text Widget

Nulla vitae elit libero, a pharetra augue. Nulla vitae elit libero, a pharetra augue. Nulla vitae elit libero, a pharetra augue. Donec sed odio dui. Etiam porta sem malesuada.

Recent Comments

    WhatsApp