Eight years after the building of the mosque, the madrasa was built alongside the southern wall of the qubba's antechamber and the western wall of the mosque's prayer hall. It is accessed through a monumental door inlaid with ceramic mosaic tile. Like the mosque and qubba, there is a courtyard, with rooms for students and pilgrims surrounding it on two sides. Founded by the Sutan, admission to it was at the discretion of the head of state, and the administration drew many of its highest officials from it's ranks. Ibn Khaldun is among the well known scholars who taught there. It is built on the highest point of the hill.
United Nations Educational Scientific and Cultural Organization. Convention Concerning the Protection of the World Cultural and Natural Heritage. Sidi Bou Mediène (Sidi bu-Medina). Nomination to the World Heritage List. Submitted by Algeria. December 31, 1981. Original in French. http://unesdoc.unesco.org/images/0004/000492/049287Eb.pdf