Ben Youssef Madrasa: A Saadian Islamic College in Marrakech
Site at a Glance
- Rating
- 4.7
- Popularity
- High
- Country
- Morocco
- Primary era
- Early Modern
- External website
- Open
- Eras represented
- Medieval, Early Modern
- Civilizations
- Marinid, Saadi
- Site type
- Religious
- Remains
- Madrasa
On this page11 sections
History
Ben Youssef Madrasa is a Saadian Islamic educational and residential institution in Marrakech, Morocco, rebuilt in the sixteenth century in the architectural traditions of the Marinid dynasty. Its present building was completed in 1564–1565 under the Saadian sultan Abdallah al-Ghalib, whose construction program transformed Marrakech and whose name appears in several inscriptions identifying him as the builder. At its height, the madrasa was the largest institution of its type in the Maghreb.
Marinid foundation and Saadian rebuilding
The madrasa stood beside the Ben Youssef Mosque, named for the Almoravid sultan Ali ibn Yusuf, who ruled from 1106 to 1142. The mosque had originally served as Marrakech’s principal place of worship. A predecessor madrasa was established nearby around 1350 by the Marinid sultan Abu al-Hasan. The Marinids dominated Morocco from the thirteenth to the fifteenth century, and their traditions shaped the institution’s later architectural form.
Abdallah al-Ghalib, who ruled as a Saadian sultan from 1557 to 1574, rebuilt, enlarged, and redecorated the madrasa soon after assuming power. The work belonged to the Saadian building program in Marrakech and retained earlier Marinid architectural principles while giving the institution a richly ornamented form. An inscription gives the completion date as 1564–1565, or 972 in the Islamic calendar.
Education and student life
For nearly four centuries, the madrasa accommodated students who came from outside Marrakech, especially from the Atlas and Sous regions. A madrasa combined advanced religious education with lodging for students who did not live locally. Instruction took place in the adjacent Ben Youssef Mosque, the mosque of the nearby qasba, and the madrasa’s own prayer hall, while the institution provided rooms and helped meet students’ living costs.
The curriculum initially centred on the Hadith, the traditions concerning the words and actions of the Prophet Muhammad, as well as fiqh, or Islamic jurisprudence, Quranic interpretation, Arabic, and theology. It later expanded to include philosophy, medicine, mathematics, astronomy, geography, physics, chemistry, rhetoric, grammar, lexicography, poetic metre, history, and adab, the scholarly literary tradition.
Admission followed a recommendation from previous teachers and an assessment of each student’s knowledge. Students lived, cooked, and ate in their rooms. Some copied manuscripts or religious manuals for sale, while others extended their studies through journeys to cities elsewhere in Morocco, across the Maghreb, or in the Middle East.
Closure, restoration, and heritage status
The madrasa closed in 1960 and reopened as a historical site in 1982. A restoration carried out after a 1999 partnership between the Omar Benjelloun Foundation and Morocco’s Ministry of Culture cleaned and consolidated its woodwork and plaster decoration. Further restoration began under the Ministry of Habous in 2017. The building closed again in November 2018 and reopened to the public in April 2022.
Ben Youssef Madrasa was classified as a Moroccan National Heritage Monument in 1916. It also forms part of the Medina of Marrakech, which was inscribed on the UNESCO World Heritage List in 1985. Its institutional history remains closely connected with Abdallah al-Ghalib, whose praise and name appear in inscriptions throughout the building, including the foundation text on the cedar entrance lintel.
Remains
The madrasa occupies an almost square plan measuring approximately 40 by 43 metres and rises over two levels. Brick walls are concealed beneath plaster, tilework, and other forms of decoration. A single entrance from the street leads through a long, narrow passage to a vestibule and then to the central courtyard by means of an angled transition. The building’s circulation system includes secondary corridors around the courtyard, with two stairways connecting them to corresponding upper-floor passages.
Courtyard and principal spaces
Entrance and central courtyard
The street entrance has a sculpted muqarnas vault, a three-dimensional ornament formed from stepped, cellular shapes. Inside, a wooden mashrabiyya screen separates the vestibule from the courtyard beneath a monumental decorated arch. Mashrabiyya screens are perforated wooden elements used for separation, privacy, ventilation, and filtered light.
The rectangular central courtyard is paved with marble slabs from the nearby Atlas region and contains a shallow rectangular pool approximately 3 by 7 metres. Two long galleries open onto the courtyard through five arches each. The entrance and prayer-hall façades receive especially elaborate treatment, combining symmetrical vegetal and geometric patterns carved into plaster with cedar beams and cornices.
Prayer hall
The prayer hall stands opposite the entrance across the pool and is reached through a richly decorated porch. Three aisles are divided by marble pillars and arches. The central aisle rises higher than the others and faces the qibla, the direction of Mecca. At the centre of the qibla wall is the mihrab, the prayer niche indicating that direction.
Marble is used extensively in this space. Two white marble slabs frame the porch and carry raised Quranic inscriptions, while four white marble colonnettes frame the mihrab. Four large pink-marble columns with carved capitals divide the hall and support arches beneath the dome. The pink marble came from the Marrakech region, while the white marble may have been imported from Carrara.
The qibla wall contains a relief lattice of vegetal designs incorporating a pine-cone motif. A complex vegetal frieze and eulogistic inscriptions frame the mihrab, whose vault is filled with carved plaster pendants in muqarnas form. Eighteen small windows with openwork plaster screens illuminate the area beneath the dome over the central aisle.
Student rooms and ablutions chamber
About 130 student rooms occupy the eastern and western sides of the building on both floors. They are arranged around six small internal courtyards, three in each residential wing. These courtyards function as light wells and have upper galleries. Rooms opening onto them receive light through small openings, while ten upper-floor rooms above the principal galleries have mashrabiyya windows overlooking the central courtyard. Some rooms contained mezzanine beds, and the madrasa could house more than 800 students, with its maximum capacity estimated at 900.
In the northeastern corner, the ablutions chamber has a square plan organized around four marble columns and four arches. A central muqarnas cupola rises above a square water basin, while latrine rooms run around the perimeter. Its former arrangement also accommodated an elaborately carved Andalusi marble basin that is now displayed in the prayer hall.
Materials and decoration
Carved gypsum plaster, known as gebs, covers much of the building. It was applied in layers approximately 3 to 4 centimetres thick, allowing the material to remain workable while being carved on site. Its distinctive pink colour comes from gypsum quarried near Asni, and some panels contain marble powder that forms a stucco surface.
Cedar from the Middle Atlas was used for beams, lintels, cornices, galleries, and the roof structure of the prayer hall. Much of this timber is carved, while sheltered circulation spaces and the small courtyards also contain polychrome-painted wood. The prayer hall has a carved and painted octagonal ceiling decorated with coloured geometric motifs. Mashrabiyya screens serve as window balustrades and also form the screen between the vestibule and the main courtyard. The entrance doors are plated with bronze and carry interlacing geometric designs with shallow arabesque carving.
Zellij, Moroccan mosaic tilework made from individually cut glazed pieces, covers the lower courtyard walls to approximately standing height. The wall surfaces are often topped by excised-ceramic friezes, made by chipping away the surrounding glaze to reveal contrasting vegetal designs. Above these are carved-stucco panels and column consoles, followed by cedar lintels, corbels, and cornices. Floors are generally laid with coloured ceramic tiles called bejmats, while the roofs are covered with traditional green glazed tiles.
The decorative vocabulary includes arabesques, sebka or darj wa ktaf patterns, calligraphic inscriptions, muqarnas, and Saadian pine-cone or cedar-cone motifs. Arabic texts appear on marble, cedar, plaster, and excised ceramics in Kufic, floral Kufic, and cursive scripts. They include the name of Allah, Quranic quotations, the completion date, and a foundation inscription on the cedar entrance lintel that praises Abdallah al-Ghalib and asks for prayers on his behalf.
The Kufic inscription around the mihrab arch includes the basmala, the formula invoking God’s name at the beginning of Quranic texts, the tasliyya, a blessing invoking the Prophet Muhammad, verse 36 and the beginning of verse 37 of Surat al-Nur. The pink-marble capitals combine floral motifs, arabesques, and cursive inscriptions.
Andalusi marble basin
The carved marble basin now displayed in the prayer hall was made from a single block of white marble at Madinat al-Zahra near Cordoba between 1002 and 1007, during the caliphate period. It was created as an ablutions basin and dedicated to Abd al-Malik, the son of al-Mansur and a court official under the caliph Hisham II. One face has four bands of floral vine scrolls, while one end bears two eagles and quadrupeds.
The basin was originally set into a wall of the madrasa’s ablutions chamber. It was later moved to the main courtyard and subsequently housed at the Dar Si Said Museum. After that museum’s reorganization and the madrasa’s recent restoration, it was placed in the prayer hall in 2022. Specialists studied or noted it in the early 1920s. It may have been brought to Marrakech by Ali ibn Yusuf with marble architectural pieces from the ruined palaces of Cordoba for the Almoravid Ben Youssef Mosque, and may later have been reused in the madrasa after the mosque fell into neglect.




