Marrakech · north medina, beyond the souks

Ben Youssef Madrasa

Ticket paid at the gate · About an hour on your own

The main courtyard of the Ben Youssef Madrasa facing the arched entrance of the prayer hall, with carved stucco walls, cedar eaves and zellij below

Ben Youssef Madrasa at a glance

What it is
Madrasa (Quran school) in Marrakech
Entry
Ticket paid at the gate
Hours
The official site gives 9:00 a.m. to 7:00 p.m. every day. Hours change in Ramadan and on religious holidays, so check locally the day before.
Allow
About an hour on your own; a guide adds the inscriptions and the history of the rooms.
Built
Commissioned by the Saadian sultan Abdallah al-Ghalib and completed in 1564 to 1565 (972 AH), as an inscription records, on the site of a Marinid madrasa of the 14th century.
UNESCO
Inside the Medina of Marrakesh, a World Heritage Site since 1985.
When to go
Opening time, or the last hours of the day.
From the centre
On foot from Jemaa el-Fnaa: north through the souks, past Le Jardin Secret, to the Ben Youssef Mosque and its green-tiled roof. The entrance is on Rue Assouel. Cars cannot reach it; our driver drops you at the nearest gate of the medina.
Dress
Shoulders and knees covered; the building is a former religious college and the prayer hall still has its mihrab.
Access
The ground-floor courtyard is level; the student cells are reached by stairs from the vestibule.

The Saadian sultan Abdallah al-Ghalib completed the Ben Youssef Madrasa in 1564 to 1565, and at its height it housed up to 800 students in 130 rooms. It closed for restoration in November 2018 and reopened in April 2022. You visit one central courtyard with a long pool, the prayer hall at its end, and the small cells upstairs where students lived.

In short

The Ben Youssef Madrasa is a Quran college completed in 1564 to 1565 by the Saadian sultan Abdallah al-Ghalib, in the north of the Marrakech medina. It reopened in April 2022 after restoration. Tickets are sold on site at the entrance. Allow about an hour, and come at opening time.

The visit, stop by stop

Ben Youssef Madrasa in the order you walk it

  1. The street door and its muqarnas vault

    Before you go in, look up: a vault carved in muqarnas, the honeycomb sculpting of Moroccan architecture, hangs over the doorway. The doors are plated with bronze in an interlacing pattern, and the cedar lintel above them carries an inscription naming Sultan Abdallah as the builder.

  2. The corridor and the vestibule

    A narrow corridor leads to a vestibule, and only then does the courtyard open in front of you through a carved wooden screen under a stucco arch. The plan is deliberate: you go from a dark, tight passage into the largest open space of the building.

  3. The courtyard and its pool

    The courtyard is the centre of a building of about 40 by 43 metres. A shallow pool of about 3 by 7 metres runs down its middle and reflects the walls. Galleries line the east and west sides, with student rooms on both floors behind them.

  4. The prayer hall

    At the south-east end of the courtyard is the prayer hall, with the richest stucco of the building around the mihrab, the niche that shows the direction of prayer. A large Kufic inscription runs round the arch of the mihrab.

    A rectangular marble basin from Caliphal Cordoba, carved with bands of floral and geometric relief, on a low plinth in the Ben Youssef Madrasa
  5. The student cells upstairs

    Two stairways from the vestibule climb to the upper floor. The cells are grouped around six small courtyards, three on each wing, and look inward rather than onto the street. Their walls are almost bare; the decoration is on the little courtyards that give access to them.

    A small upper courtyard of the student quarters in the Ben Youssef Madrasa, with carved stucco arches, cedar balustrades and doorways to the cells

Photos in this section: Migeo53 (CC0); Miguel Hermoso Cuesta (CC BY-SA 3.0), via Wikimedia Commons (photo credits).

A Quran college for students from the 16th century

Madrasas in the Maghreb trained scholars in Maliki law, jurisprudence and the readings of the Quran, and housed the students who came to study. The Marinid sultan Abu al-Hasan, who reigned from 1331 to 1348, founded the first madrasa on this site, according to the historian al-Ifrani. The building you visit is the Saadian rebuild: Sultan Abdallah al-Ghalib, who reigned from 1557 to 1574, had it completed in 1564 to 1565, and on completion it was the largest madrasa in the Maghreb.

Named after the mosque next door

The madrasa takes its name from the Ben Youssef Mosque beside it, founded by the Almoravid sultan Ali ibn Yusuf, who reigned from 1106 to 1142, as the main mosque of the city. The mosque has been rebuilt since, most recently by the Alaouite sultans. As with other mosques in Morocco, only Muslims may enter it.

  • The Ben Youssef Mosque was built in the 12th century by Ali ibn Yusuf, rebuilt in the 1560s by Abdallah al-Ghalib and rebuilt again under the Alaouite sultan Moulay Sliman.

What to look at in the Ben Youssef Madrasa

The decoration follows the order of the earlier Marinid madrasas: tile below, carved plaster in the middle, cedar above. Zellij covers the lower walls, a band of calligraphy runs at eye level, and carved cedar eaves close the top.

The courtyard and its pool

Stand at the end opposite the prayer hall to see the pool, the galleries and the arch together; the ground-floor arches rest on stucco consoles that carry carved wooden lintels.

Carved cedar and stucco

The carving uses arabesques, the lattice pattern called sebka, calligraphy, muqarnas and the Saadian pine cone. Many inscriptions are verses of the Quran; the one around the mihrab arch begins with the basmala and quotes the Surah an-Nur.

The student cells upstairs

The official site counts 134 rooms that once lodged students; other published counts give 130. Each cell is small and plain and opens onto one of the six inner courtyards.

The ablutions room

Off the eastern corridor, in the north-east corner of the ground floor, is the room where students washed before prayer. Four marble columns carry four arches under a muqarnas cupola, a square water basin fills the middle, and latrines open around the edge. The French arts inspector Jean Gallotti recorded the Cordoban marble basin in this room in 1921.

Restoration and reopening in 2022

The madrasa stopped teaching in 1960 and was refurbished and opened to visitors in 1982. The Ministry of Habous and Islamic Affairs, which owns the site, restored it after the King's visit to the old medina on 9 January 2017. The works brought one object back to the building.

The Cordoban marble basin

The carved marble basin in the prayer hall was made at Madinat al-Zahra, the caliphal palace city outside Cordoba, between 1002 and 1007, as an ablutions basin dedicated to Abd al-Malik, son of the chamberlain al-Mansur. The scholar Mariam Rosser-Owen has suggested that Ali ibn Yusuf brought it to Marrakech with other marble from the ruined palaces of Cordoba for his mosque next door, and that the madrasa reused it later. It stood in the madrasa for centuries, was taken away for study in the 20th century and kept at the Dar Si Said Museum, and returned to the prayer hall after the restoration.

Visiting the Ben Youssef Madrasa, tickets and the busy hours

Tickets are paid at the gate: the official site says its online ticket office is under maintenance and that tickets are sold on site only. Children and large groups pay a different rate from individual adults. The official site gives opening hours of 9 a.m. to 7 p.m. every day; check locally in Ramadan. We bring our travellers at opening time or in the last hours of the day, when the courtyard is quietest.

Groups and the audio guide

The official site sets a limit of 30 people per group visit, plus the group leader or guide, and says tourist groups must be led by a qualified, accredited guide. It also offers an audio guide for visitors who come without one. The entrance is on Rue Assouel, the lane the site gives as its address.

Photos inside

The official site publishes no photo rule that we could find, so ask at the entrance if you want to use a tripod. Ask before you photograph people, and keep your voice low in the prayer hall.

Next door, the Almoravid Qubba and the Marrakech Museum

Two more sights stand within a few steps of the madrasa, and a guide can join all three into one stop.

The Almoravid Qubba

About 40 metres south of the Ben Youssef Mosque stands a small domed pavilion built by Ali ibn Yusuf in the early 12th century, most likely in 1125. It sheltered water for ablutions before prayer and is the only surviving example of Almoravid architecture in Marrakech. French scholars documented it in 1947 and dug it out from under 7 to 8 metres of debris.

The Marrakech Museum

The museum fills the Dar Mnebhi palace, built at the start of the 20th century by Mehdi al-Mnebhi, minister of war to Sultan Moulay Abdelaziz. A huge brass chandelier hangs in its covered central courtyard, and the collection runs from carpets and Fes pottery to Berber jewellery.

Walk on

Pair the Ben Youssef Madrasa with these, in this order

  1. 1

    Ben Youssef Madrasa

    You are here. Start at opening time.

  2. 2

    Le Jardin Secret

    The restored garden house is on the way north from the square, so it fits before the madrasa on the same walk.

  3. 3

    The souks

    The souks fill the lanes between Jemaa el-Fnaa and the Ben Youssef Mosque; the madrasa marks their northern end, so it closes a walk through the trades.

  4. 4

    Jemaa el-Fnaa

    Walk back south through the souks to the square in the late afternoon, when the food stalls go up.

Street-scale map: the Ben Youssef Madrasa and the sights to pair with it, with Jemaa el-Fna and Koutoubia for reference, numbered in walking order Jemaa el-FnaKoutoubia 1 Ben Youssef Madrasa 2 Le Jardin Secret 4 Jemaa el-Fnaa 250 m
Straight-line positions from Wikidata coordinates; lanes in the medina bend, so follow the order, not the line. Inset: Marrakech on the whole map of Morocco.

More in Marrakech, and routes through it

Sources, dates checked and photo credits

Sources

  1. Wikipedia, Ben Youssef Madrasa checked 3 Dec 2026
  2. UNESCO World Heritage List checked 3 Dec 2026
  3. medersabenyoussef.ma checked 3 Dec 2026
  4. Wikidata checked 3 Dec 2026
  5. Wikipedia, Landmarks of Marrakesh checked 3 Dec 2026

Drive times come from our route planner, door to door by private car without stops. Each source shows the date we last checked the facts on this page against it.

Photos: The main courtyard of the Ben Youssef Madrasa facing the arched entrance of the prayer hall: Draceane, CC BY-SA 4.0; A small upper courtyard of the student quarters in the Ben Youssef Madrasa: Miguel Hermoso Cuesta, CC BY-SA 3.0; A rectangular marble basin from Caliphal Cordoba: Migeo53, CC0, via Wikimedia Commons (photo credits).

Questions

Ben Youssef Madrasa: questions before you go

Is the Ben Youssef Madrasa open again after the restoration?
Yes. It closed for restoration in November 2018 and reopened to visitors in April 2022. The official site gives daily hours; check locally in Ramadan.
Can you buy Ben Youssef Madrasa tickets online?
Not at the moment. The official site says its online ticket office is under maintenance and tickets are sold at the entrance only.
Can non-Muslims visit the Ben Youssef Madrasa?
Yes. The madrasa is a historic site open to all visitors. The Ben Youssef Mosque next door is a working mosque and is not open to visitors who are not Muslim.
How old is the Ben Youssef Madrasa?
The building you visit was completed in 1564 to 1565 under the Saadian sultan Abdallah al-Ghalib. A Marinid madrasa of the 14th century stood on the site before it.

Ask for a quote

Add the Ben Youssef Madrasa to your Marrakech days

Tell us your dates and who is travelling. We plan the route, place the madrasa in a guided walk through the northern medina, and send one quote.

Your trip
Where should we reply?

Free, no obligation. A planner replies within one working day, usually sooner.

What happens next

  1. Send your dates and your group.A month, a rough route and a head count are enough to start.
  2. Get a day-by-day plan and one quote.Drive times, where you sleep, the vehicle and what is included, for your group only.
  3. Change it, or confirm it.Nothing is booked or charged until you say yes.
  • A planner on our US desk or our team in Morocco writes back, depending on the hour you send.
  • If your number is on WhatsApp, the reply comes there. If not, by phone or email.
  • Your details go only to the operator named at the foot of this page.
Get a quote WhatsApp