Madrasa of Abu al-Hasan

The Madrasa of Abu al-Hasan, also referred to as the Marinid Madrasa (of Salé), is a medieval madrasa located within the old city of Salé, Morocco. It was founded or built in 1341 by the Marinid sultan Abu al-Hasan and is notable for its rich decoration. It is located next to the Grand Mosque of Salé and was built to help further develop the mosque as the focus of religious and intellectual life in the city.
Architecture.
The madrasa is entered through an ornate stone portal with a horseshoe arch doorway. This entrance leads to a small vestibule, from which a staircase on the side leads to the upper floor. Beyond the vestibule, one enters sideways into the corner of the central courtyard, which is measures about 8 by 5 meters. The courtyard is paved with "zellij" tilework, features a small central fountain, and is ringed by a gallery of round masonry columns that uphold stucco and wood-carved decorated facades. The spaces between the gallery columns and the outer wall of the courtyard are covered by painted wood ceilings carved into geometric star patterns, one part of which has been restored to its approximate original colours. The whole building, like the nearby Grand Mosque, is aligned or oriented with the "qibla" (direction of prayer) of the time (i.e. roughly southeast). Accordingly, at the far end of the courtyard is a large rectangular prayer room featuring a "mihrab" (a niche symbolizing the direction of prayer), around which are more intricate stucco-carved surfaces and windows. The room is divided into three spaces by arches on either side of the mihrab and covered by more timber ceilings. The upper floor is occupied by the student cells and living quarters. Unlike other madrasas of this type, the students' rooms do not have windows looking into the courtyard.
Possibly even more than other Marinid madrasas, this building shows similarities with Nasrid art and architecture (e.g. the palaces of the Alhambra), attesting to the shared artistic vocabulary between the two regions. The decoration consists of "zellij" tilework covering the floor and the lower walls, transitioning into intricately carved stucco decoration above, and topped by carved cedar wood surfaces and a wooden canopy above. Both the wood and the stucco are carved with calligraphic decoration and with a variable repertoire of geometric, arabesque, and floral/vegetal patterns. A rectangular marble panel carved with a foundation inscription of the building was originally set into the northwestern wall of the courtyard (opposite the mihrab and the prayer room).