It was only in 1882 that the building was slowly restored to its original state.
Kraljevi dvor se je sčasoma preselil v Madrid in Alcázar je služil kot državni zapor skoraj dve stoletji preden je kralj Karel III.