The Alcázar of Segovia (literally, “Segovia Fortress”) is a medieval castle located in the city of Segovia (Castile and León, Spain), a World Heritage Site by UNESCO. Rising out on a rocky crag above the confluence of two rivers near the Guadarrama mountains, it is one of the most distinctive castle-palaces in Spain by virtue of its shape – like the bow of a ship. The alcázar was originally built as a fortress but has served as a royal palace, a state prison, a Royal Artillery College and a military academy since then.
https://en.wikipedia.org/wiki/Alc%C3%A1zar_of_Segovia