Segorbe Castle was an Arabian alcázar (palace or castle). Very little remains of the original alcázar, but the large complex was a residence of lords, dukes and kings for over a millennium.
.After the Muslim king of Valencia, Zayd Abu Zayd, converted to Christianity and declared himself an ally and vassal of King James I of Aragon, he ceded the fortress to James in 1229 and became governor general of Valencia on his behalf. The castle became a sanctuary for Zayd Abu Zayd himself when he was killed by Dynamil Zayyan until James captured the castle in 1245, and placed Abu Zayd in command of an army to assist in the retaking of Valencia.
The castle had a peak in the 14th and 15th centuries, culminating in the holding of General Courts by King Martin of Aragon, who had made the city his residence.
In 1784, urban expansion of Segorbe beyond the original medieval fortifications required further construction, and new walls were built. After the works were completed, the new walls had eight gates.
References:The Clementinum is a historic complex of buildings in Prague. Until recently the complex hosted the National, University and Technical libraries, the City Library also being located nearby on Mariánské Náměstí. The Technical library and the Municipal library have moved to the Prague National Technical Library at Technická 6 since 2009. It is currently in use as the National Library of the Czech Republic.
Its history dates from the existence of a chapel dedicated to Saint Clement in the 11th century. A Dominican monastery was founded in the medieval period, which was transformed in 1556 to a Jesuit college. In 1622 the Jesuits transferred the library of Charles University to the Klementinum, and the college was merged with the University in 1654. The Jesuits remained until 1773, when the Klementinum was established as an observatory, library, and university by the Empress Maria Theresa of Austria.