The madrasa was completed in 1346, during the Marinid period, under the patronage of the Marinid sultan Abu al-Hasan who was a prolific constructor of madrasas in the city.[2] The building owes its name to the faqih (Islamic jurist) Al-Mesbahi, the first faqih who taught in the madrasa.[3] It was distinguished by the white marble used in its construction and decoration, which was imported by Abu al-Hassan from the city of Almeria in al-Andalus (Spain).[3] The extensive use of the marble gave the madrasa its nickname Madrasa ar-Rkham (Arabic: مدرسة الرخام), meaning "school of marble".[1] The maliki jurist Ahmad al-Wansharisi was a professor in this school in the late fifteenth century and taught the Mudawwana and Farʿī Ibn al-Ḥājib.[4]
Architecture
Centered around a courtyard, the building originally consisted of a ground floor and three upper floors, but the top floor has since been destroyed. On the north side of the courtyard is a large twin-arched opening leading to a square prayer hall. The twin-arched entrance is unique in the context of Marinid architecture and is richly decorated with carved stucco, including a cursiveArabic inscription running in a frame around it.[3] Despite its function, the prayer hall lacks a mihrab. The madrasa could house around 140 students from across the country in 117 rooms across its different floors.[3]
State of preservation
The madrasa has been severely damaged and elements of it have collapsed over time due to neglect and to poor restoration attempts. The dome of the prayer room, the ceiling of the ablutions room, and some other rooms were destroyed, and the iconic marbles have also deteriorated. However, it still retains valuable elements of Marinid motifs and original forms of floral and geometric decorations, and has been undergoing the restoration initiated in the early 1990s.[1] The restoration was finally completed as of 2017 in the context of a wider restoration program for other madrasas and historic monuments in the city.[5] Upon completion of the restoration, the madrasa was earmarked to serve the Qarawiyyin University.[6]