 On the ground floor there was a large room for the nurses, a kitchen, pantry and storage rooms.The medieval castle of Montilla was built in the thirteenth century and partially demolished in 1508 by order of King Ferdinand II of Aragon to punish the 1st Marquis of Priego, Pedro Fernández de Córdoba y Pacheco for having led a riot in Córdoba against the inquisitor Diego Rodríguez de Lucero.Much of the material was used for other buildings in the city.