Initial here with an Arab Kings mohamed built a castle to block catholics, the building is used by successive Kings occasionally. The fourteenth century Juan carlos I and his son Philip ii promoted the building of the reconstruction, put it into Spanish monarchs permanent. A fire destroyed the palace in 1734, Philip v in 1738 and rebuilt on the debris of a new palace.