 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.It is currently used as a museum and a military archives building.The Alcázar of Segovia, like many fortifications in Spain, started off as a Roman fort, but apart from the foundations, little of the original structure remains.