Area

Student Cells (Upper Floor)

Student Cells (Upper Floor)
Photo by Onur on Pexels
Student Cells (Upper Floor)
Photo by Yan Krukau on Pexels
Student Cells (Upper Floor)
Photo by Clam Lo on Pexels
Student Cells (Upper Floor)
Photo by cottonbro studio on Pexels
Student Cells (Upper Floor)
Photo by Gera Cejas on Pexels
Student Cells (Upper Floor)
Photo by cottonbro studio on Pexels

Up the two stairways from the vestibule, the madrasa changes register. Down below, the great courtyard pulls every eye toward its carved cedar and mirrored pool. Up here, the scale drops to human — to the scale of a single student, a single night. The 130 cells that ring the upper corridors are small and plain, their decoration spare compared to the spectacle below, though the secondary courtyards they open onto still carry ceramic tilework and carved plasterwork of real quality.

At its peak this place housed up to 800 students, arranged across six small interior courtyards — three in the northeast wing, three in the southwest. Walk the corridors slowly and the arithmetic of that life becomes legible: the narrow doorways, the close walls, the view down into the courtyard from above.

💛 What travellers fall for

People who've been through more than once tend to linger on the upper level longer the second time. The cells are genuinely cramped — duck your head going in — but standing in one and looking out through a mashrabiya screen toward the courtyard below reframes the whole building. You stop seeing a monument and start seeing a school.

Good to know
Cash only at the entrance; 50 DH for adults. Arrive at 9am or after 4pm on a weekday to avoid the thickest crowds. The medina streets around Place Ben Youssef don't admit vehicles, so come on foot. Allow an hour to ninety minutes for the full madrasa.
The story

How Student Cells (Upper Floor) came to be

The first madrasa on this site was founded under the Marinid sultan Abu al-Hasan in the fourteenth century. The current structure was commissioned by the Saadian sultan Abdallah al-Ghalib, who came to power in 1557 and completed the building in 1564–65. It became the largest madrasa in Morocco — a status the upper dormitory floor makes tangible when you try to count the cells.

The madrasa functioned as a place of religious education for centuries before closing in 1960. It was refurbished and reopened as a historical site in 1982, then closed again for restoration in November 2018, reopening in April 2022.

People & landmarks

Who and what shaped it

People who shaped it

Abdallah al-Ghalib
Saadian sultan who commissioned and built the current madrasa structure, completed 1564–1565 CE.
Abu al-Hasan
Marinid sultan who founded the first madrasa on this site, r. 1331–1348.

Landmark buildings

Ben Youssef Madrasa
Largest madrasa in Morocco with 130 student cells housing up to 800 students; Saadian-era structure completed 1564–1565, reopened to public 2022 after restoration.
Student Cells (Upper Floor)
130 dormitory rooms arranged around six secondary courtyards on two levels; spare decoration with ceramic tilework and carved plasterwork.
Practical

Plan your visit

On the map

When to go

Right now

28°C
Partly cloudy
Sat
40°
24°
Sun
38°
24°
Mon
38°
22°
Tue
41°
22°
Weather data: Open-Meteo

Background & history adapted from Wikipedia (CC BY-SA) · specs from Wikidata (CC0) · weather from Open-Meteo · map data © OpenStreetMap contributors · photos from Wikimedia Commons / Unsplash with per-image credit. No third-party reviews or social posts reproduced.

Top