User:Simon Burchell/Workpage4

Xativa Castle (Castillo de Xátiva; Castell de Xàtiva) is a castle located in the city of Xàtiva near Valencia, Spain. It is strategically located on the ancient roadway Via Augusta leading from Rome across the Pyrenees and down the Mediterranean coast to Cartagena and Cádiz.

The castle originally consisted of two fortifications; the castell menor ("lesser castle") stood to the east and the castell major ("greater castle") to the west. These two fortifications were later joined by a curtain wall that enclosed the settlement lying between them. During the 15th century, the castle required significant expenditure to maintain it.

The castle had about thrity towers, two churches and two cisterns. The church of the cestell menor was dedicated to Saint Anne, and that of the castell major to Saint Mary.

In 1092, the castle fell into the occupation of the Almoravid dynasty who were expelled in an uprising that took place in 1145. During this uprising, the castle was besieged by the Governor of Valencia, Marwan Abd-al-Aziz. In 1171, the Castle finally fell, along with the rest of the Levante coast, into the hands of the Almohads.

King James I of Aragon began his crusade there in the summer of 1239, finally capturing Xátiva on 22 May 1244, following a five-month siege. After submitting to the Christian monarch and signing the Treaty of Játiva the Moors handed over the smaller nearby Castle to James I, while they were allowed to continue occupying the larger castle for another two years based on the terms of the treaty.

After the two years had elapsed King James I of Aragon repopulated a large part of the town with Catalan and Aragonese settlers.