Discovering...
Discovering...

Reopened in 2022 after a careful restoration, the Ben Youssef Medersa is the finest interior in the northern medina: a serene courtyard of zellij and carved cedar, ringed by the tiny cells where students once boarded. This guide covers its history, what to look for, and how to pair it with the Almoravid Koubba and the museums next door.
What it is
A former Islamic college (medersa) in the northern Marrakech medina
Founded
14th century under the Marinids; rebuilt and enlarged by the Saadians in the 1560s
Scale
Once among the largest Quranic colleges in North Africa
Student cells
Around 130 small dormitory rooms over two floors
Reopened
2022, after a multi-year restoration
Entry fee
Roughly 50–70 MAD (about 5–7 USD), approximate
Right next door
The Almoravid Koubba and the Ben Youssef Mosque
Yasmine El Amrani· Marrakech & Atlas Editor
Marrakech-born travel writer who has spent the last decade walking the medina’s souks and the High Atlas trails above Imlil. She covers the Red City, Berber villages and day trips into the mountains. Marrakech · 12+ years covering Morocco
Published 19 June 2025 Last updated 15 July 2026
The Ben Youssef Medersa takes its name from the adjacent Ben Youssef Mosque, which honours the Almoravid sultan Ali ibn Yusuf, who ruled Marrakech in the early 12th century. The college itself came later: it was founded in the 14th century under the Marinid dynasty, then almost entirely rebuilt and greatly expanded in the 1560s by the Saadian sultan Abdallah al-Ghalib. That Saadian rebuild is essentially the building you walk through today.
In its heyday it was one of the largest theological colleges in the Maghreb, drawing students from across Morocco and beyond to study the Quran, law and the religious sciences. They lived on site in a warren of small rooms and studied in and around the central court. When it finally closed as a working college in the mid-20th century, it opened to visitors as one of Marrakech's essential monuments — and, after restoration, it is better than ever.
The heart of the medersa is its rectangular central courtyard, and it stops most visitors in their tracks. A long reflecting basin runs down the middle, mirroring the arcades, and every surface above waist height erupts in decoration: bands of intricate zellij mosaic in the lower registers, then carved cedar and deeply sculpted stucco climbing towards the roofline, much of it worked with Quranic inscriptions in flowing Arabic script.
At the far end, a prayer hall opens off the court, its mihrab (prayer niche) framed by stucco and topped with a fine wooden cupola. Take your time here — the pleasure is in the detail, from the interlacing star patterns of the tilework to the honeycomb muqarnas over the doorways. Early morning, before the tour groups, is when the courtyard is calmest and the light on the tiles is at its best. The courtyard, or sahn, centres on a marble-lined basin, and a foundation inscription above the entrance records the Saadian sultan Abdallah al-Ghalib, who rebuilt the college in the 1560s.
What makes the medersa more than a decorative showpiece is the human scale upstairs. Around and above the main court, a labyrinth of roughly 130 tiny dormitory cells housed the resident students, arranged over two floors around small internal light-wells. Many are barely more than monastic cubicles, some with a single shuttered window looking down into a courtyard.
Climbing among these plain little rooms, after the splendour of the main court, gives a vivid sense of student life here centuries ago — austere study and communal living wrapped inside one of the most beautiful buildings in the city. The upper galleries also offer changing views down onto the courtyard and its pool, and are worth the narrow stairs for the perspective alone.
Just outside the medersa sits a small but remarkable survivor: the Almoravid Koubba (Koubba Ba'adiyn), a domed pavilion from the early 12th century that is the only substantially intact Almoravid monument left in Marrakech. Long buried and only re-excavated in the mid-20th century, it once served the ablutions of the original mosque, and its interior dome is carved with sophisticated floral and geometric motifs that influenced later Moroccan architecture.
The neighbouring Ben Youssef Mosque, rebuilt in the 19th century on much older foundations, is an active place of worship and, like most Moroccan mosques, is not open to non-Muslim visitors — but its position completes the historic ensemble. Together the medersa, the koubba and the mosque form the religious and scholarly core of the old medina.
The medersa sits in a rich cluster of sights in the northern medina, so it is easy to build a half-day around it. The Marrakech Museum and the Photography Museum are a two-minute walk away, and combined tickets are sometimes offered covering several of these northern-medina sites together. The whole area lies just north of the main souks, so a shopping wander flows naturally into a visit.
For the wider architectural story, our national medersas and Quranic schools guide sets Ben Youssef alongside the great Marinid colleges of Fes and Meknes. When you need a break, the northern medina has plenty of terraces and cafés nearby — browse where to eat in the medina — before you head back down towards Jemaa el-Fnaa.
The medersa is open daily during the day and charges a modest entry fee, roughly 50–70 MAD as of mid-2026, payable at the door; carry cash. It is one of the medina's most popular interiors, so it fills with tour groups from mid-morning — arriving at opening rewards you with a quiet courtyard and far better photographs. Entry is around 50–70 MAD (approximate, mid-2026), and the medersa generally opens daily from about 9am to 6pm; combined tickets pairing it with the nearby Marrakech Museum and the Almoravid Koubba are sometimes sold.
Dress modestly out of respect for the building's religious history, wear comfortable shoes for the narrow stairs to the upper cells, and allow around 45 minutes to an hour to do it justice. There is little interpretive signage, so reading up beforehand, or joining a guided medina walk, adds a great deal to what you see.
Part of what makes the medersa so absorbing is learning to read its surfaces. In keeping with Islamic tradition, there are no human or animal figures; instead the ornament is built from three families of motif — geometry, stylised plant forms and calligraphy — layered from floor to ceiling. The lower walls carry zellij, mosaics of hand-cut glazed tiles fitted into complex interlacing stars, while carved stucco and cedar take over higher up.
The inscriptions are not merely decorative. Bands of Arabic script, in both the angular Kufic and the flowing cursive styles, carry Quranic verses and pious dedications, turning the walls themselves into an act of devotion. The cedar came from the forests of the Middle Atlas, prized for its scent and durability, and was carved before being fitted — craftsmanship that has survived four and a half centuries of use and weather.
Even the central pool has meaning. Water is a recurring symbol of purity and paradise in Islamic architecture, and here it serves practically for ritual ablutions and visually to double the courtyard's beauty in reflection. Understanding these layers transforms the visit from a quick photo stop into a reading of a whole worldview rendered patiently in tile, plaster and wood.
One detail rewards a closer look before you leave: the prayer hall at the courtyard's end. Its mihrab, the niche indicating the direction of Mecca, is framed by finely carved stucco and crowned with a small ribbed cupola and stalactite-like muqarnas, the honeycombed vaulting that is a signature of Moorish architecture. It is a concentrated display of the same skills seen across the courtyard, and a quiet, contemplative counterpoint to the grander open space — well worth the few extra minutes many hurried visitors skip. The soft light filtering into the hall is especially atmospheric in the early morning.
It is a former Islamic college, or medersa, in the northern medina of Marrakech, where students once boarded to study the Quran and religious sciences. Founded in the 14th century and rebuilt by the Saadians in the 1560s, it is celebrated for its stunning central courtyard of zellij tilework, carved cedar and stucco, and for the warren of tiny student cells around it.
Yes. After a multi-year restoration it reopened to visitors in 2022 and is one of Marrakech's essential sights again. The work refreshed the courtyard, tilework and cells while keeping the historic character. It is open daily during the day, and going early beats the mid-morning tour groups that fill the courtyard.
As a mid-2026 guide, entry is roughly 50–70 MAD (about 5–7 USD), paid in cash at the door. Combined tickets are sometimes available covering the medersa together with nearby northern-medina sites such as the Marrakech Museum and the Almoravid Koubba, which can be better value if you plan to see several.
Focus on the central courtyard: the reflecting pool, the bands of zellij mosaic, the carved cedar and stucco climbing the walls, and the Quranic inscriptions. Step into the prayer hall to see the mihrab and cupola, then climb to the upper floor to walk among the roughly 130 small student cells and look down into the court.
The Almoravid Koubba (Koubba Ba'adiyn) is a small domed pavilion from the early 12th century, standing just outside the medersa. It is the only substantially surviving Almoravid monument in Marrakech, once used for ritual ablutions, and its carved interior dome is an important early example of the motifs that shaped later Moroccan architecture. It pairs naturally with a medersa visit.
Easily. The Marrakech Museum (in Dar Menebhi) and the Maison de la Photographie are a short walk away, and the whole cluster sits just north of the main souks. Combined tickets sometimes cover several northern-medina sites. A visit fits comfortably into a half-day taking in the museums, the Almoravid Koubba and a stroll through the souks.
Around 45 minutes to an hour does it justice: time to absorb the central courtyard, step into the prayer hall to see the mihrab, and climb to the upper floor among the student cells. Photographers and those combining it with the neighbouring museums should allow a little longer. Going right at opening, around 9am, rewards you with an empty, quiet courtyard and the best light.
Plan it with a local expert
Crafting extraordinary journeys through Morocco's timeless landscapes. 100% private journeys, handcrafted around you.
from $2,011Sahara Desert Luxury Expedition
from $2,054Essential Morocco: Imperial Cities Circuit
from $5,978Sahara to Sea: Morocco Complete
Attractions & Heritage
Bahia and El Badi palaces, Dar Si Said, the Marrakech and Photography museums and Musee YSL on one walkable route.
Read guideAttractions & Heritage
How to navigate and shop the medina souks by specialist zone, with haggling tips, fair prices and shipping advice.
Read guideAttractions & Heritage
Morocco's historic Quranic colleges as architecture: Bou Inania, Al-Attarine and Ben Youssef, and which are open to visit.
Read guideAttractions & Heritage
The UNESCO square as spectacle: storytellers, musicians, the evening transformation, rooftop vantage points and safety.
Read guideAttractions & Heritage
Marrakech's famous gardens in one guide: Jardin Majorelle and the YSL connection, Le Jardin Secret, Menara, ANIMA and Agdal.
Read guide