Yusuf I commissioned the school through his chief minister, Ridwan ibn Abd Allah, and construction ran from 1340 to 1349, teaching mathematics, astronomy, philosophy and natural sciences alongside theology and law. Ferdinand and Isabella handed the building to Granada's town council as its Casa del Cabildo in 1500, and the council kept its seat here until 1851, when the city hall moved to Plaza del Carmen. Between 1720 and 1729 the council rebuilt the exterior completely, replacing the Nasrid front with the Baroque façade of Sierra Elvira stone, heraldic carving and a domed staircase that now faces Calle Oficios. The palace once stood beside the Alcaicería, the elite silk and gold market, and close to the site of the main mosque that later became Granada Cathedral. The University of Granada now runs the palace as its Centre for Contemporary Culture, hosting exhibitions in the rooms around the Baroque courtyard.