Main Entrance Portal
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.
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.
Who and what shaped it
People who shaped it
Landmark buildings
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
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.