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:Duino Castle was built by the Wallsee family in 1389 on the cliffs overlooking the Gulf of Trieste. It replaced an older castle from the 11th century. Over time, the Wallsee family disappeared and the castle, after having been used as a prison, became the residence of the Luogar and Hofer.
At the end of the 19th century it became the property of Prince Alexander von Thurn und Taxis from the Czech branch of the House of Thurn and Taxis. It remains with the family to this day with his great-grandson Prince Carlo Alessandro della Torre e Tasso, Duke of Castel Duino the current owner. The castle has been opened to the public as a museum and park.