Standing between the confluence of the Eresma and Clamores rivers, the first documented record of the fortress dates back to Christian writings in the 12th century. It was built on top of a rock, a testament to its original military status.
http://www.spain.info/en_IN/que-quieres/arte/monumentos/segovia/alcazar_de_segovia.html