Discovering...
Discovering...

The medersa, Morocco's historic Islamic college, is where the country's craftsmen poured their finest zellij, carved cedar and sculpted stucco. This guide surveys the greatest examples — Bou Inania and Al-Attarine in Fes, Bou Inania in Meknes, Ben Youssef in Marrakech and the jewel-box medersa of Sale — and explains which are open to visitors and how to see them.
What it is
A medersa is a residential Islamic college for religious and legal study
Golden age
The Marinid dynasty (13th–15th centuries) built most great medersas
Fes highlights
Bou Inania (1350s) and Al-Attarine (1320s)
Marrakech
Ben Youssef, rebuilt by the Saadians in 1564–65, reopened 2022
Craft signature
Zellij tile, carved cedar, sculpted stucco and marble
Access
Most medersas welcome non-Muslims; working mosques do not
Entry
Modest ticket fees, payable in cash; allow 30–45 minutes each
Sofia Marín· Coast, North & Practical Travel Editor
Spanish travel writer based in Tangier who criss-crosses northern Morocco and the Atlantic coast by bus, train and ferry. She covers Chefchaouen, Tangier, Essaouira and the practical side of getting around. Tangier · 10+ years covering Morocco
Published 11 July 2025 Last updated 15 July 2026
A medersa — the Maghrebi form of the Arabic madrasa — was a college for advanced Islamic study, teaching the Quran, religious law, theology and the sciences. Unlike a simple Quranic school for children, it was a residential institution: students lived on-site in small cells arranged around a central courtyard, close to the great mosque where they worshipped and often attended lectures. Endowed by sultans and wealthy patrons through religious foundations, the medersas were the universities of their day and a symbol of dynastic piety and prestige.
Architecturally they follow a consistent, beautiful plan: an open courtyard with a central ablution pool or fountain, a prayer hall at one end, and upper galleries of student rooms behind exquisitely decorated screens. It is in these buildings that Moroccan craftsmanship reaches its most concentrated expression — the same artistry that decorates the country's palaces and shrines, gathered into intimate, contemplative spaces. Seeing them is one of the most rewarding threads of heritage travel, closely tied to the Andalusian and Islamic legacy of the imperial cities.
Most of Morocco's greatest medersas were built by the Marinid dynasty between the thirteenth and fifteenth centuries. The Marinids were prolific patrons of religious learning, and they endowed a network of colleges across their cities — above all in Fes, their capital — to train scholars and administrators and to advertise their devotion. This was the era that perfected the medersa as an art form, marrying refined proportions with an almost overwhelming richness of surface decoration.
The craftsmanship of these buildings is a vocabulary worth learning to read. The lower walls glow with zellij, mosaic mosaics of hand-cut glazed tile in geometric star patterns; above them run bands of sculpted plaster, or gebs, carved into arabesques and flowing Arabic calligraphy; and the ceilings and screens are worked in carved and painted cedar. Marble columns, muqarnas vaulting and inscribed friezes complete the effect. The same skills later produced the great Saadian and Marinid monuments of Fes and Marrakech.
Fes holds the richest concentration of medersas in Morocco. The Bou Inania Medersa, built in the 1350s by the Marinid sultan Abu Inan Faris, is the grandest of all — unusually, it also served as a full congregational mosque, complete with a minaret, and its soaring courtyard of tile, stucco and cedar is a highlight of any visit. Across the lane hangs the celebrated water clock, the Dar al-Magana, part of the same royal foundation.
Nearby, the smaller Al-Attarine Medersa, built in the 1320s by Abu Said Uthman II beside the spice-sellers' souk, is a jewel of concentrated decoration, its courtyard a masterclass in balanced ornament. Both stand close to the Qarawiyyin mosque-university, founded in 859 and often called the oldest existing degree-granting institution in the world; note that the Qarawiyyin mosque itself remains closed to non-Muslims, though you can glimpse its courtyard from the doorways. Finding these sites is part of the adventure — our Fes medina navigation guide helps you thread between them.
Marrakech's great college is the Ben Youssef Medersa, first founded under the Marinids but rebuilt and vastly enlarged by the Saadian sultan Abdallah al-Ghalib in 1564–65. At its height it was one of the largest Islamic colleges in North Africa, housing hundreds of students in cells around its monumental courtyard. Closed for a lengthy restoration, it reopened in 2022, and its central court — a vast composition of zellij, carved cedar and stucco reflected in a long marble pool — is now one of the most spectacular interiors in the city.
Because it deserves a visit in its own right, we cover it in depth in a dedicated Ben Youssef Medersa guide, with tickets, timing and how to combine it with the adjacent Ben Youssef Mosque and the Almoravid Koubba. It is the essential Saadian counterpoint to the Marinid medersas of the north, and it shows how the tradition carried forward into the sixteenth century with undiminished ambition.
Two more Marinid medersas reward a visit beyond Fes and Marrakech. In Meknes, the Bou Inania Medersa — a fourteenth-century foundation sharing its royal namesake with the Fes college — sits beside the Grand Mosque, and its rooftop offers one of the best views over the medina and the green-tiled mosque roofs, a vista otherwise hard to reach. It pairs naturally with the city's imperial monuments of the Moulay Ismail era.
In Sale, Rabat's historic twin across the Bou Regreg, the Marinid Medersa built by Sultan Abu al-Hasan in 1341 is a small, perfect jewel-box of a building, its intricate courtyard often blissfully quiet, and its roof again giving views over the neighbouring Grand Mosque. It makes a rewarding stop on a walk through the Sale medina and rounds out a picture of just how widely the Marinids spread their colleges across the kingdom.
Half the pleasure of a medersa is slowing down to read its surfaces. Start low, with the zellij dado, and notice how the geometric stars radiate from repeating points without ever quite repeating; then look up to where the tile gives way to carved plaster, often incorporating Quranic inscriptions and the founder's dedication in flowing script. Higher still, the cedar screens and eaves are carved and painted, casting intricate shadows across the courtyard as the sun moves.
The student cells, reached by narrow stairs, bring the scholarship to life: tiny, plain rooms that housed generations of young men studying at the adjacent mosques. Standing in them, you feel the contrast between the austerity of the living quarters and the glory of the courtyard they overlooked — a deliberate lesson in devotion and humility. This craftsmanship is the same that adorns Morocco's sacred shrines and zawiyas, and learning to read it in a medersa enriches everything else you see.
The good news for visitors is that most of the great medersas are open to everyone, whatever their faith, because they now function chiefly as monuments rather than active teaching mosques. Bou Inania in Fes and Meknes, Al-Attarine in Fes, Ben Youssef in Marrakech and the Sale medersa all welcome non-Muslim visitors for a modest ticket, payable in cash. Bou Inania in Fes still holds prayers, so access to parts of it may be limited at prayer times, but the courtyard is generally open to all.
The key distinction to remember is between medersas and working mosques: Morocco's active congregational mosques, including the Qarawiyyin and Andalusiyyin in Fes, are closed to non-Muslims, with the notable exception of the Hassan II Mosque in Casablanca, which runs guided tours. Dress modestly at every site, allow thirty to forty-five minutes for each medersa, and go early or late to catch the courtyards at their quietest and the light at its most flattering across the tilework.
A medersa is a residential Islamic college where students lived in cells around a courtyard and studied the Quran, law and theology, usually beside a great mosque where they worshipped. A mosque is a place of communal prayer. In Morocco, most historic medersas now function as monuments and are open to all visitors, whereas active mosques such as the Qarawiyyin are generally closed to non-Muslims.
The finest include the Bou Inania and Al-Attarine medersas in Fes, both Marinid foundations of the fourteenth century; the Ben Youssef Medersa in Marrakech, rebuilt by the Saadians in 1564–65 and reopened in 2022; the Bou Inania Medersa in Meknes; and the small, exquisite Marinid medersa in Sale. All are celebrated for their zellij tilework, carved cedar and sculpted plaster.
Yes. Most of the great medersas — Bou Inania in Fes and Meknes, Al-Attarine, Ben Youssef and the Sale medersa — are open to visitors of any faith for a modest ticket, because they now serve as monuments rather than active teaching mosques. The main exception concerns working mosques: the Qarawiyyin and Andalusiyyin in Fes are closed to non-Muslims, unlike Casablanca's Hassan II Mosque, which offers guided tours.
Most were built by the Marinid dynasty between the thirteenth and fifteenth centuries, prolific patrons of religious learning who endowed colleges across Fes, Meknes, Sale and beyond. The great exception is the Ben Youssef Medersa in Marrakech, a Marinid foundation rebuilt and greatly enlarged by the Saadian sultan Abdallah al-Ghalib in 1564–65. Together the Marinids and Saadians perfected the medersa as an art form.
Start with the zellij, mosaics of hand-cut glazed tile in geometric star patterns on the lower walls; above them, look for sculpted plaster carved with arabesques and Arabic calligraphy, often including Quranic verses and the founder's dedication. Higher up, cedar screens and eaves are carved and painted. Don't miss the upper galleries of plain student cells, a deliberate contrast to the glory of the courtyard below.
Not exactly. The Qarawiyyin in Fes, founded in 859 by Fatima al-Fihri, is a mosque-university, often called the oldest existing degree-granting institution in the world, and its mosque remains closed to non-Muslims. The great teaching medersas nearby, such as Al-Attarine and Bou Inania, were separate residential colleges that housed students studying at the Qarawiyyin, and those medersas are open to visitors.
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
A visit guide to the restored 14th–16th-century Quranic college: courtyard, zellij, carved cedar, tickets and timing.
Read guideAttractions & Heritage
Dar Batha, the Nejjarine wood museum, the Bou Inania and Al-Attarine medersas and Borj Nord on a museums-focused route.
Read guideAttractions & Heritage
Bab Mansour, the Mausoleum of Moulay Ismail, Heri es-Souani granaries and the Royal Stables in one visitor guide.
Read guideAttractions & Heritage
Rabat's historic twin across the Bou Regreg: Sale's walled medina, Grand Mosque, Abu al-Hasan Medersa and corsair history.
Read guideAttractions & Heritage
The Andalusi legacy from 1492 across Rabat, Sale, Tetouan, Fes and Chefchaouen: architecture, gardens, cuisine and music.
Read guideAttractions & Heritage
Morocco's living Sufi tradition for respectful visitors: zawiyas, saints' shrines, moussems, brotherhoods and etiquette.
Read guide