Skip to content
Ben Youssef Madrasa Mistakes to avoid
The marble courtyard of the Ben Youssef Madrasa with its long pool and the carved facade of the prayer hall

Marrakech, Morocco · Independent visitor guide

The Ben Youssef Madrasa, without the guesswork

What the ticket costs, where you buy it, when to go and how to find the door in the medina, checked against the official madrasa website.

Good to know

There is no official online ticket right now: you pay at the entrance. Anyone in the alleys who says the madrasa is closed is not telling the truth; it opens every day. Mistakes and scams to avoid

Four things to know before you go

The visit itself is simple. These four points make it go smoothly. Each links to the full answer.

  1. 01

    Pay at the door

    Foreign adults pay 50 MAD, children under 12 10 MAD. Bring dirhams in small notes.

    How tickets work
  2. 02

    Go at 9:00 or late afternoon

    Tour groups fill the small courtyard from mid-morning. In Ramadan it closes at 16:30.

    Hours and quiet times
  3. 03

    Walk, and ignore “it’s closed”

    It is 1.1 km from Jemaa el-Fna, on foot only. Follow the signs or an offline map.

    The route from the square
  4. 04

    Go upstairs

    Plan about 45 minutes to 1 hour; up to 1.5 hours if you explore every upstairs room and take photos. Most of the student rooms, and the best view of the pool, are upstairs.

    What to see inside

Inside the madrasa

What you’ll see

A Quranic college finished in 1564–1565 under the Saadian sultan Abdallah al-Ghalib, once the largest madrasa in Morocco: a marble courtyard, a prayer hall and 134 student rooms on two floors.

White marble, a long pool and four walls of zellij, carved stucco and cedar.
01 The courtyard and its pool White marble, a long pool and four walls of zellij, carved stucco and cedar.
Behind a carved cedar door, the richest stucco in the building.
02 The prayer hall and mihrab Behind a carved cedar door, the richest stucco in the building.
Tiny cells around small courtyards, most of them upstairs.
03 The student rooms Tiny cells around small courtyards, most of them upstairs.
A marble basin carved near Córdoba around the year 1000.
04 The Andalusian basin A marble basin carved near Córdoba around the year 1000.

History

A thousand years of history

From a marble basin carved near Córdoba to the 2022 reopening: the key dates of the Ben Youssef Madrasa.

From a marble basin carved near Córdoba to the 2022 reopening: the key dates of the Ben Youssef Madrasa.
The full history
  1. 1002–1007

    A basin carved in Al-Andalus

    At Madinat al-Zahra near Córdoba, craftsmen carve the marble basin that now stands in the prayer hall: the oldest object in the madrasa.

  2. 1106–1142

    The Ben Youssef Mosque

    The Almoravid sultan Ali ibn Yusuf founds the great mosque that gives the madrasa its name. Its ablutions pavilion, the Almoravid Koubba (around 1125), still stands next door.

  3. 14th century

    The first madrasa

    A first madrasa is founded on the site by the Marinid sultan Abu al-Hasan (r. 1331–1348).

  4. 1564–1565

    The Saadian masterpiece

    The Saadian sultan Abdallah al-Ghalib rebuilds the madrasa on a grand scale; an inscription dates its completion to 972 AH. It becomes the largest madrasa in Morocco, with 134 student rooms.

  5. 1565–1960

    Four centuries of students

    Students from across Morocco live in the small rooms and study religious sciences, philosophy, medicine and mathematics.

  6. 1960 · 1982

    From school to monument

    The madrasa closes as a school in 1960. Restored, it opens to the public as a historical monument in 1982.

  7. 2017

    A royal visit

    After the King’s visit to the old medina on 9 January 2017, the Ministry of Habous and Islamic Affairs launches a full restoration.

  8. 2018–2022

    Restoration and reopening

    Closed November 2018 to April 2022, the madrasa reopens every day, with tickets sold at the entrance. Today it welcomes more than 230,000 visitors a year.

On your own, or with a guide?

On your own

50 MAD at the door

Walk from Jemaa el-Fna with an offline map, buy your ticket at the entrance and take your time. The cheapest way, and the building is easy to read on your own. official madrasa website

The ticket guide

With a guide

€10 to €50

A guide walks you through the souks, keeps the touts away and explains the inscriptions. Most tours add Bahia Palace or Le Jardin Secret. The catch: most leave out the entry tickets. We mark which ones include them.

All tours compared

Guided visits, from the lowest price

Some links are affiliate links: if you book, we may earn a commission at no extra cost to you. How this works

Sorted by price, lowest first. Prices and inclusions from the Viator or GetYourGuide listing; the price at checkout is the one that counts.

Stay one step ahead

Six mistakes that spoil a madrasa visit

None of them is hard to avoid once you know about it.

How to avoid each one
  1. 01 Believing “the madrasa is closed today”
  2. 02 Arriving at the same time as the tour groups
  3. 03 Counting on a card or an online ticket
  4. 04 Missing the upper floor
  5. 05 Forgetting the Ramadan hours
  6. 06 Expecting a taxi to drop you at the door

The guide

Every page shows when it was last checked.

Questions visitors ask

All questions

How much is the ticket to the Ben Youssef Madrasa?

Foreign adults pay 50 MAD. Moroccan adults pay 20 MAD on showing a Moroccan identity card, children under 12 pay 10 MAD, and groups of 21 people or more pay 30 MAD each.

Can I buy Ben Youssef Madrasa tickets online?

Not on the official website for now: when we checked, its online ticketing was under maintenance and it said tickets are sold only at the entrance. You don’t need to book ahead for an individual visit. Tour platforms sell guided visits, and a few include the entry ticket.

Can I pay by card at the Ben Youssef Madrasa?

Plan on cash: recent visitor guides report that the ticket desk takes cash only, in dirhams. Card payment existed only for the official online ticketing, which was under maintenance when we checked. Bring dirhams in small notes; ATMs are easy to find around Jemaa el-Fna, not near the madrasa.

What are the Ben Youssef Madrasa opening hours?

9:00–19:00, every day. During Ramadan the madrasa keeps shorter hours: 9:00–16:30, every day.

How long do you need at the Ben Youssef Madrasa?

Plan about 45 minutes to 1 hour; up to 1.5 hours if you explore every upstairs room and take photos. The building has 134 student rooms on two floors, and the upstairs corridors are where most people slow down.

How do I get to the Ben Youssef Madrasa from Jemaa el-Fna?

On foot. The madrasa is 1.1 km north of the square, in the Ben Youssef neighbourhood, in the heart of the medina; the official site says to follow the signs. Allow 15 to 20 minutes through the souks, and ignore anyone who says the road ahead is closed.