The royal court eventually moved to Madrid and the Alcázar then served as a state prison for almost two centuries before King Charles III founded the Royal Artillery School in 1762.
V letu 1587 je arhitekt Francisco de Morar zaključil glavni vrt.