Area

Main Entrance Portal

Main Entrance Portal
Photo by Farhan Al-Gifari on Pexels
Main Entrance Portal
Photo by 征宇 郑 on Pexels
Main Entrance Portal
Photo by Antonio García Prats on Pexels
Main Entrance Portal
Photo by David Yu on Pexels
Main Entrance Portal
Photo by HAMZA YAICH on Pexels
Main Entrance Portal
Photo by Ankush Dawar on Pexels

Before you see anything else of Ben Youssef Madrasa, you read it. Carved into the stone above the entrance portal, in Arabic, the words run: "You who enter my door, may your highest hopes be exceeded." It's a threshold inscription that has greeted students, scholars, and strangers for more than four and a half centuries.

The portal itself stops you before you even cross it. A square vault of muqarnas — those honeycomb-like geometric stalactites cut from stone — frames the gateway, drawing your eye upward before the dark, tile-lined vestibule corridor pulls you inward toward the courtyard beyond.

💛 What travellers fall for

People who come back tend to linger at the portal longer on the second visit than the first. Once you know what's inside, the inscription lands differently. Go before 9:30am and you'll have the entrance almost to yourself — the light hits the muqarnas at a low angle then, and the shadows do most of the work.

Good to know
Open daily 9am–7pm (6pm during Ramadan). Tickets are 50 DH for adults, cash only, purchased at the door. Arrive early — by 10am the courtyard fills. The portal and ground level are accessible; the upper floors require stairs. Dress conservatively.
The story

How Main Entrance Portal came to be

The first madrasa on this site was founded under the Marinid sultan Abu al-Hasan in the fourteenth century. The structure standing today was commissioned two centuries later by the Saadian sultan Abdallah al-Ghalib and completed in 1564–1565 CE — a building conceived to outshine its predecessor and to anchor Saadian authority in Marrakech's religious and intellectual life.

It functioned as a working theological school until 1960, housing up to 900 students across 130 dormitory cells. Closed for decades, it reopened as a historical monument in 1982, then underwent a further restoration that shuttered it from November 2018 until April 2022. The portal has marked every one of those entrances and exits.

People & landmarks

Who and what shaped it

People who shaped it

Abdallah al-Ghalib
Saadian sultan (r. 1557–1574 CE) who commissioned the current madrasa structure, completed 1564–1565 CE.
Abu al-Hasan
Marinid sultan (r. 1331–1348 CE) who founded the first madrasa on this site during the fourteenth century.
Ali ibn Yusuf
Almoravid Sultan (r. 1106–1142 CE) who founded the adjacent Ben Youssef Mosque; the madrasa is named in his honor.

Landmark buildings

Main Entrance Portal
Single street entrance with square vault of muqarnas; inscription above reads 'You who enter my door, may your highest hopes be exceeded.'
Central Courtyard
Nearly square space (40 by 43 meters) covered with white marble, featuring a large shallow pool (approximately 3 by 7 meters) at center.
Prayer Hall
Rectangular space (15 by 10 meters) with pentagonal mihrab framed by four marble columns; displays marble basin from Cordoba Caliphate era (1002–1007).
Student Dormitories
130 dormitory cells housed up to 900 students; seven secondary courtyards with approximately 100 student rooms across ground and first floors.
Practical

Plan your visit

On the map

When to go

Spring (March–May) and autumn (late September–November) offer the most forgiving conditions, with daytime temperatures between 20°C and 28°C. Summer visits are possible but July and August regularly reach 35–40°C, so an early-morning arrival matters more then than at any other time of year.

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