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:House of the Blackheads (Melngalvju nams) is a building situated in the old town of Riga. The original building was erected during the first third of the 14th century for the Brotherhood of Blackheads, a guild for unmarried German merchants in Riga. Major works were done in the years 1580 and 1886, adding most of the ornaments.
The structure was bombed to a ruin by the Germans June 28, 1941 and the remains demolished by the Soviets in 1948. The current reconstruction was erected from 1995 to 1999. Today the House of Blackheads serves as a museum and sometimes concert hall.