Medersa Ben Youssef
Medersa Ben Youssef is the great Saadian college of Marrakech. At its height it was the largest Islamic college in the Maghreb.
The college stands in the northern medina, beside the Ben Youssef Mosque, around a courtyard of carved cedar, sculpted stucco and mosaic tilework. Its walls carry the finest decoration of the Saadian dynasty, and its one hundred and thirty small rooms once housed students who came from across Morocco to study law and theology. Today Medersa Ben Youssef is a museum of Moroccan art, and it is the most visited historic building in Marrakech.
The building you walk into is Saadian, raised in 1564 and 1565 under Sultan Abdallah al-Ghalib, but the college itself is older: a Marinid school stood on the same ground in the fourteenth century, and the mosque beside it dates to the twelfth. Medersa Ben Youssef closed as a school in 1960, opened as a monument in 1982, and reopened in April 2022 after a restoration that lasted more than three years.
Quick Facts
- Building: Medersa Ben Youssef, a Saadian Islamic college in the northern medina of Marrakech, beside the Ben Youssef Mosque.
- Site: 31°37′55″ north, 7°59′10″ west, per Wikidata Q1560540, about eight hundred metres north of Jemaa el-Fnaa.
- Raised: Completed in 1564 to 1565, in the Islamic year 972, under the Saadian sultan Abdallah al-Ghalib.
- Founder: Sultan Abdallah al-Ghalib, who ruled from 1557 to 1574 and rebuilt the college on a grand scale.
- Plan: Nearly square, about forty metres by forty-three metres, around one great courtyard with six small inner courtyards.
- Cells: About one hundred and thirty student rooms on two floors, arranged around the small courtyards.
- Students: Up to eight hundred students at its height, making it the largest madrasa in the Maghreb.
- Closure: Closed as a college in 1960, reopened to the public as a historic monument in 1982.
- Reopening: Closed again in November 2018 for restoration, and reopened in April 2022; about two hundred and thirty thousand visitors a year.
- Heritage standing: Inside the Medina of Marrakesh, inscribed by UNESCO in 1985 as ref 331, criteria (i)(ii)(iv)(v); the medersa is part of the medina property, not a separately listed component.
Geography of Medersa Ben Youssef
Medersa Ben Youssef stands in the northern part of the medina of Marrakech, in the quarter that grew up around the Ben Youssef Mosque. The medina is the old walled city, a maze of narrow lanes, small squares and covered souks that covers about seven hundred hectares inside the ramparts. The medersa sits on the main north-south axis of the medina, a short walk from Jemaa el-Fnaa, the great square at the southern edge of the old city, and the walk from the square to the college takes about ten minutes through the lanes of the souks.
The city of Marrakech lies on the Haouz plain, a flat and dry plain at the foot of the High Atlas mountains, which rise to the south and are often capped with snow in winter. The plain is watered by the Tensift River and by the khettaras, the underground channels that the Almoravids built to bring water from the mountains to the city. The medina grew around the water and the markets, and its walls, gates and gardens still follow the plan that the Almoravids laid out in the twelfth century.
The quarter around Medersa Ben Youssef is one of the oldest parts of the city, and its lanes are narrower and quieter than the souks to the south. The Ben Youssef Mosque stands beside the college, and its minaret rises above the rooftops of the quarter. The Almoravid Koubba, a small domed pavilion from the twelfth century, stands in the same street, and the Musée de Marrakech, housed in a nineteenth-century palace, faces the college across a small square. The quarter is a place of workshops and small houses as well as monuments, and the sound of craftsmen at work carries through the lanes.
The medina of Marrakech is a living city, not a museum, and the streets around the college are full of people going about their daily business. Bakers, metalworkers, leatherworkers and tilemakers keep workshops in the quarter, and their trades are the same ones that supplied the builders of the college four centuries ago. The college itself stands behind a single street entrance, and its plain outer wall gives no hint of the courtyard inside, which is the most richly decorated space in the city.
Marrakech sits at the meeting point of the mountains, the desert and the Atlantic coast, and the city has always been a crossroads for traders and travellers. The road south from the city climbs into the High Atlas and on to the Sahara, while the road west runs to the Atlantic coast at Essaouira and the road north runs to Fes and the imperial cities of the north. Medersa Ben Youssef stands at the heart of this crossroads city, in the quarter where the scholars of the Saadian court lived and taught.
Marrakech is hot for most of the year, and the medina is at its best in the cool months. From October to April the air is clear, the Atlas mountains show snow on their peaks, and the morning light falls across the courtyard of the college. Summer brings heat that often passes forty degrees, and the college is best seen early, before the sun climbs over the roofs and the crowds fill the lanes.
The rooftops of the northern medina give the quarter its shape, and the minarets rise above them as landmarks for every walk. The minaret of the Ben Youssef Mosque stands beside the college, and the minaret of the Koutoubia rises to the south, so that the two towers frame the old city from north to south. From the upper corridors of the college, visitors can see the rooftops, the palm trees of the gardens, and the Atlas mountains on the horizon, a view that shows how the medina sits between the plain and the peaks.

A view of Medersa Ben Youssef — CC BY-SA 2
History of Medersa Ben Youssef
The college takes its name from the Ben Youssef Mosque beside it, and the mosque takes its name from the Almoravid sultan Ali ben Youssef, who ruled from 1106 to 1142 and made Marrakech the capital of an empire that stretched from the Sahara to Spain. Ali ben Youssef built the mosque as the main mosque of the city, and the small domed Koubba that stands nearby is a survivor of the same century, one of the oldest buildings in Marrakech. The mosque was the centre of the quarter, and the school that grew up beside it taught the law and theology of the city.
A school already stood on the ground in the fourteenth century, when the Marinid sultan Abu al-Hasan, who ruled from 1331 to 1348, founded a madrasa beside the mosque. The Marinid period was the great age of the madrasa in Morocco, and the sultans of Fes built colleges across their lands to train the judges and scholars of the state. The Marinid building was modest beside what followed, but it fixed the college on this site, and the Saadian sultans who came after kept the same ground.
The building that visitors see today was commissioned by the Saadian sultan Abdallah al-Ghalib, who ruled from 1557 to 1574 and made Marrakech his capital. Construction began soon after he took power, and an inscription in the courtyard records the completion of the work in the Islamic year 972, which falls in 1564 to 1565. The new college was built in the style the Marinids had established, but on a far grander scale, and when it opened it was the largest madrasa in the Maghreb, with about one hundred and thirty rooms for as many as eight hundred students.
The students of Medersa Ben Youssef came from across Morocco and from further afield, and they studied the Quran, Islamic law and theology in the prayer hall and in the small rooms around the courtyards. The college was a residential school, and the students lived in the cells on the two floors, sleeping on mezzanines above their study space and eating in the common rooms. The life of the college was strict and communal, and the students stayed for years before returning to their towns as judges, teachers and preachers.
The decoration of the college is the finest work of the Saadian period, and it shows the three crafts that define Moroccan art: carved cedar wood, sculpted stucco and zellige mosaic tilework. The courtyard is the centre of the building, with a marble reflecting pool flanked by galleries of carved cedar and walls of dense zellige, and the prayer hall holds a marble basin carved a thousand years ago at Madinat al-Zahra near Córdoba. The stucco of the courtyard is cut so fine that it looks like lace, and the cedar of the ceilings is carved with patterns that repeat without ever repeating exactly.
The college worked as a school for four centuries, through the Saadian dynasty and the Alaouite dynasty that followed it, and it closed only in 1960, when the modern state moved religious teaching to new institutions. The building was restored and reopened to the public as a historic monument in 1982, and it became one of the most visited places in Marrakech. A further restoration began after the king visited the medina in January 2017, and the college closed in November 2018 while the Ministry of Habous and Islamic Affairs repaired the zellige, the stucco and the cedarwork. It reopened in April 2022, and it now draws about two hundred and thirty thousand visitors a year.
The listing of the medina in 1985 crowned a century of recognition for the old city. UNESCO chose the medina for its ramparts, its mosques and its living trades, and the college stands among the buildings that justify the choice, beside the Koutoubia and the Saadian tombs. The property covers the old city inside its walls, and the college shares its protection with the houses, the souks and the workshops around it.
Travel to Medersa Ben Youssef
Medersa Ben Youssef stands in the northern medina, and most visitors reach it on foot from Jemaa el-Fnaa, walking north through the souks for about ten minutes. The entrance is a single doorway in a plain wall, and the ticket office stands just inside. Marrakech is the most visited city in Morocco, and the medersa is one of its great draws, so the queue at the door is longest in the late morning and the afternoon. The college is open every day from nine in the morning to seven in the evening, and tickets cost fifty dirham for adults, ten for children and thirty for students, according to the official site.
The visit begins in the entrance vestibule, a small chamber with a sculpted muqarnas dome, and then opens suddenly into the great courtyard, which is the heart of the building. Visitors should take their time in the courtyard, because the decoration repays slow looking: the cedar galleries, the stucco panels, the zellige walls and the marble pool each hold detail that is easy to miss at a glance. The prayer hall stands at the far end of the courtyard, and its mihrab and its ancient marble basin are the finest pieces in the building.
From the courtyard, two stairways climb to the upper floor, where the student cells open onto corridors around six small courtyards. The cells are small and plain beside the courtyard, and they show the other side of the college: the life of the students who slept on mezzanines and studied in the same rooms. The upper corridors give the best view down into the courtyard, and photographers should climb up before the light changes in the afternoon.
The college pairs naturally with the monuments of its own street. The Ben Youssef Mosque stands beside the college, but it is not open to visitors who are not Muslim, so travellers admire its minaret and its gate from the street. The Almoravid Koubba, a small domed pavilion from the twelfth century, stands a few steps away and is open to visitors, and the Musée de Marrakech, in a nineteenth-century palace across the square, holds Moroccan art and crafts. The three together make a full morning in the northern medina.
The best time to visit Medersa Ben Youssef is the morning, when the sun is low and the courtyard is quiet, and the light falls across the stucco and the tile. Visitors should dress modestly, speak quietly in the prayer hall, and remember that the building was a religious school for four centuries. Photography is allowed in most of the building, but tripods and flash are not welcome in the crowded courtyard.
Travellers who have seen the medersa often leave Marrakech for the Atlas and the desert, and Ouarzazate is the usual first stop on the road south, past the mountain passes and the kasbahs of the Draa valley. The medersa is a good place to start a Moroccan journey, because its decoration teaches the eye to read the palaces, mosques and tombs that follow.

A view of Medersa Ben Youssef — CC BY-SA 2
Notable Places in Medersa Ben Youssef
The Courtyard and Reflecting Pool
The Courtyard and Reflecting Pool. The great courtyard is the centre of Medersa Ben Youssef, a nearly square space of about forty metres by forty-three, with a marble reflecting pool at its heart. Galleries of carved cedar run around the pool, and the walls above them are covered in sculpted stucco and zellige tilework. The courtyard is the finest Saadian interior in Marrakech, and it is the reason most visitors come.
The Prayer Hall
The Prayer Hall. The prayer hall stands at the far end of the courtyard, with a mihrab of carved stucco and a marble basin that was carved a thousand years ago at Madinat al-Zahra near Córdoba. The hall is smaller and quieter than the courtyard, and its decoration is the most refined in the building. Visitors should pause here, because the hall was the spiritual heart of the college.
The Student Cells
The Student Cells. About one hundred and thirty small rooms open onto corridors around six small courtyards on the two floors of the college. The cells are plain beside the courtyard, with space for a bed on a mezzanine and a desk below, and they show how the students lived. The upper corridors give the best view down into the courtyard, and the contrast between the plain cells and the rich courtyard is the point of the building.
The Entrance Vestibule
The Entrance Vestibule. The entrance to Medersa Ben Youssef is a single doorway in a plain outer wall, leading into a small vestibule chamber with a sculpted muqarnas dome. The vestibule is deliberately modest, and the sudden opening into the great courtyard is the first surprise of the visit. The dome above the vestibule is one of the finest pieces of carving in the building.
The Ben Youssef Mosque
The Ben Youssef Mosque. The Ben Youssef Mosque stands beside the college and gives it its name, founded by the Almoravid sultan Ali ben Youssef in the twelfth century. The mosque is not open to visitors who are not Muslim, but its minaret and its gate are landmarks of the quarter, and the mosque explains why the college stands where it does. The present mosque is largely a nineteenth-century rebuilding on the old site.
The Koutoubia Mosque
The Koutoubia Mosque. The Koutoubia Mosque stands at the southern edge of the medina, and its minaret of seventy-seven metres is the symbol of Marrakech. The minaret is visible from the rooftops of the northern medina, and it orients every walk through the old city. Visitors to the medersa should see the Koutoubia on the same day, because the two buildings frame the history of the city.
Frequently Asked Questions
When was Medersa Ben Youssef built?
The present building dates to 1564 and 1565, under Sultan Abdallah al-Ghalib. A Marinid school stood here earlier, beside a twelfth-century mosque.
How many students lived at Medersa Ben Youssef?
About one hundred and thirty student rooms housed up to eight hundred students at the height of the college. The students came from across Morocco to study law and theology, and they lived in the cells on the two floors of the building.
Is Medersa Ben Youssef a World Heritage Site?
No. The college has no listing of its own, but it stands inside the old city, which UNESCO listed in 1985 under ref 331 for its architecture and its living urban fabric. The college is one of the buildings the listing praises, and it is guarded by the same laws as the rest of the medina.
Can I visit the Ben Youssef Mosque next door?
No, the mosque is closed to non-Muslims. Its minaret and gate are visible from the street, and the Koubba and museum nearby are open.
How long should I spend at Medersa Ben Youssef?
About an hour is enough to see the courtyard, the prayer hall and the upper corridors at a slow pace. Visitors who love Moroccan decoration should allow ninety minutes, because the stucco and the tile repay close looking.
What are the opening hours and ticket prices?
Medersa Ben Youssef is open every day from nine in the morning to seven in the evening. Tickets cost fifty dirham for adults, ten for children and thirty for students, according to the official site, and they are sold at the entrance.
Verified
- The college was completed in 1564 to 1565, in the Islamic year 972, under the Saadian sultan Abdallah al-Ghalib, as recorded by an inscription in the courtyard — Wikipedia, Ben Youssef Madrasa, and the official site medersabenyoussef.ma, checked 23 November 2026.
- At its height the college was the largest Islamic college in the Maghreb, with about one hundred and thirty student rooms and room for as many as eight hundred students — Wikipedia, Ben Youssef Madrasa, checked 23 November 2026.
- The plan is nearly square, about forty metres by forty-three, around one great courtyard with six small inner courtyards on the two floors — Wikipedia, Ben Youssef Madrasa, checked 23 November 2026.
- The college closed as a school in 1960, reopened as a historic monument in 1982, closed again in November 2018 for restoration, and reopened in April 2022 — Wikipedia, Ben Youssef Madrasa, checked 23 November 2026.
- The official site puts the number of visitors at about two hundred and thirty thousand a year — medersabenyoussef.ma, checked 23 November 2026.
- The Medina of Marrakesh was inscribed in 1985 as ref 331, criteria (i)(ii)(iv)(v), covering about seven hundred hectares inside the ramparts, and its synthesis names the Ben Youssef medersa among the marvels of the medina — UNESCO, whc.unesco.org/en/list/331/, checked 23 November 2026.
- The Marinid sultan Abu al-Hasan, who ruled from 1331 to 1348, founded a school on this ground in the fourteenth century — Wikipedia, Ben Youssef Madrasa, checked 23 November 2026.
- The Ben Youssef Mosque was founded by the Almoravid sultan Ali ben Youssef, who ruled from 1106 to 1142 — Wikipedia, Ben Youssef Madrasa, checked 23 November 2026.
- Opening hours of nine to seven and tickets of fifty, ten and thirty dirham are published on the official site — medersabenyoussef.ma, checked 23 November 2026.
- Wikidata Q1560540 is the Ben Youssef Madrasa, instance of historic site, coordinates 31.632 north, 7.986 west, matching the registry — Wikidata API, checked 23 November 2026.
Sources
- UNESCO, Medina of Marrakesh — https://whc.unesco.org/en/list/331/ (checked 23 November 2026).
- Medersa Ben Youssef, official site — https://www.medersabenyoussef.ma/ (checked 23 November 2026).
- Wikipedia, Ben Youssef Madrasa — https://en.wikipedia.org/wiki/Ben_Youssef_Madrasa (checked 23 November 2026).
- Wikidata, Q1560540 Ben Youssef Madrasa (instance of, coordinates) — checked through the API 23 November 2026.
Unverified
- The number of student rooms is given as one hundred and thirty by the standard histories, one hundred and thirty-four by the official site, and one hundred and thirty-six by the state news portal, so this article uses about one hundred and thirty.
- Some sources say the medersa was classified as a historic monument in 1916, but the classification record was not verified live, so this article does not state it as fact.
- Ticket prices and opening hours change with the rules of the Ministry of Habous, so visitors should check the official site before going.
Illustrations
- Hero: The Medersa Ben Youssef in Marrakech. Free image: https://upload.wikimedia.org/wikipedia/commons/e/e6/Marrakech%2C_Medersa_Ben_Youssef_02.jpg — CC BY-SA 3.
- In body, Medersa Ben Youssef: A view of Medersa Ben Youssef. Free image: https://upload.wikimedia.org/wikipedia/commons/4/4e/0202_MEDERSA_ben_YOUSSEF_%2837909293706%29.jpg — CC BY-SA 2.
- In body, Medersa Ben Youssef: A view of Medersa Ben Youssef. Free image: https://upload.wikimedia.org/wikipedia/commons/3/3c/0219_MEDERSA_ben_YOUSSEF_%2837984052131%29.jpg — CC BY-SA 2.
