Clan Rising
Castle of Xàtiva today

Spain · Partial ruin

Castle of Xàtiva

Castillo y conjunto monumental de Játiva

Xàtiva Castle is a twin fortification on a rocky hill above the city of Xàtiva in Valencia, Spain, made up of an older lower fort (Castillo Menor) and a larger medieval upper fort (Castillo Mayor). The complex runs along a narrow crest with long stepped curtain walls, towers and terraces and retains extensive surviving masonry. It was an active fortress through the early modern period before losing strategic importance after an 18th-century earthquake.

Photograph via Wikimedia Commons

Its prime

1700

Today

Partial ruin

As it stood in 1700

What Castle of Xàtiva looked like in its prime.

A long stone fortress runs along a narrow rocky ridge, divided into a lower (menor) and upper (mayor) enclosure; continuous pale-beige limestone curtain walls with crenellations and angled stretches step up the slope. The summit holds a compact group of square and rectangular towers and keeps, with ramped walkways and an arched gate along the middle wall. Terraced gardens and a paved fountain terrace sit within the lower enclosure, and the castle overlooks a broad agricultural plain and distant low mountains.

Its story

The story of Castle of Xàtiva.

Celtiberian Origins and the Roman Conquest

The smaller of Xàtiva's two fortresses, the Castillo Menor, began as a Celtiberian stronghold on the crag, taken by the Carthaginians in the third century BC. It is said to be where Hannibal planned his campaign against the Roman city of Saguntum, and where his son was born in 218 BC; the site was later conquered by the Roman general Scipio, and the Romans went on to add a second fortress on the mountain's other high point, the Castillo Mayor. The stronghold commanded the ancient Via Augusta, the road running from Rome across the Pyrenees and down the Mediterranean coast to Cartagena and Cádiz.

Almoravids to the Fall to James I of Aragon, 1092–1244

The castle fell to the Almoravid dynasty in 1092. An uprising drove them out in 1145, during which the fortress was besieged by the ruler of Valencia, Marwan Abd-al-Aziz. In 1171 it passed, with the rest of the Levante coast, into Almohad hands.

James I of Aragon began his conquest of the region in 1239; a five-month siege ended with Xàtiva's fall on 22 May 1244. Under the Treaty of Xàtiva that followed, the governor surrendered the smaller castle to James I at once, while the terms allowed the Muslim garrison to continue holding the larger castle for a further two years.

Once that period had elapsed, James I forcibly resettled much of the town with Catalan and Aragonese colonists, while a portion of its Muslim and Jewish population was killed or expelled; over the following decades many of the Mudéjar who remained left for Granada or North Africa.

State Prison of the Crown of Aragon

After James I's conquest and the creation of the Kingdom of Valencia, the castle served not only to defend the city but as the state prison of the Crown of Aragon. Among its prisoners was Jaume, Count of Urgell, the defeated claimant to the crown after the Compromise of Caspe, who was imprisoned there and died in captivity; a sarcophagus in the castle's chapel of Santa María is said to hold his remains. Diego de Borja, brother of Francis Borgia, was another prisoner, beheaded at the castle in 1562.

The War of the Spanish Succession, 1706–1707

The castle saw fighting again during the War of the Spanish Succession. Joan Baptista Basset, commanding the Austracist forces defending Valencia and an engineer and artillerist himself, reinforced Xàtiva's defences, including the castle; a surviving tower is still known as the Garita Basset. His work held off a first siege in May 1706 led by the Count de las Torres.

The following year, without Basset and facing heavier artillery, the town's walls were breached in two places and the castle itself suffered extensive damage. Troops under d'Asfeld, fresh from their victory at the Battle of Almansa, could not reach the elevated castle and bombarded it instead; the garrison, made up mostly of English troops and acting against the wishes of the Catalan defenders, negotiated its withdrawal with the French, leaving the castle on 12 June 1707 after a siege of more than a month.

Decline, Earthquake and Later Owners

The castle's decline after 1707 owed most to the devastation inflicted on Xàtiva itself, the earthquake of 1748, which seriously damaged the site, and the Peninsular War of the early nineteenth century, after which it was left without strategic importance.

In the twentieth century the castle passed to Gregori Molina, a businessman who had made his fortune in Xàtiva's paper industry and reportedly intended to build himself a villa within the old fortress. Carles Sarthou, the town's official chronicler and director of the Museu de l'Almodí, persuaded him instead to respect the site's architecture; the result was a new neo-Gothic range built in harmony with the older work, in effect a third castle added to the other two. The site later passed to a savings bank and from there to the Generalitat Valenciana; it is now managed by Xàtiva's town council, protected as a bien de interés cultural, and open to visitors, who can also hold civil weddings there. The partly ruined complex featured as a filming location in the Star Wars series Andor.

Step inside

7 places to explore in 1700.

The record describes 7 distinct spots at Castle of Xàtiva, including 2 interiors: castillo menor courtyard and terrace, ramped inner passage ascending to the upper fort. Create your own photoreal reconstruction and explore every one, more scenes means more rooms, more angles, and more of the place to stand in.

Approach from the modern townOuter curtain wall walkMid-slope arched entrance and gate passageCastillo Menor courtyard and terraceRamped inner passage ascending to the upper fortCastillo Mayor summit and main towersBattlements overlooking the plain

Build Your Own Castle

Recreate Castle of Xàtiva with AI to explore it.

The artist rebuilds it as it stood in 1700, a photoreal reconstruction that belongs to you alone. Pay with coins, no subscription needed.

Recreate this castle →Defend this castle →

Questions about Castle of Xàtiva

What is the history of Castle of Xàtiva?

Castle of Xàtiva was first established as a Celtiberian stronghold, with the smaller Castillo Menor later built on Iberian and Roman remains and the larger Castillo Mayor developed during the medieval period. It fell to the Almoravids in 1092 and was taken by James I of Aragon after a five-month siege in 1244. The fortress was badly damaged during the War of the Spanish Succession in 1707 and the 1748 earthquake.

What is inside Castle of Xàtiva?

Inside Castle of Xàtiva are the Castillo Menor courtyard and terrace, the central arms courtyard and gardens, and a rising passage towards the upper fort. The Castillo Mayor contains the Gothic Chapel of Santa Maria, the Presó Fosca state prison, cisterns, remnants of the seloquia courtyards and the former rooms of the Duke of Calabria. Surviving features include Gothic arches, an opus spicatum pavement and a Renaissance window.

Why was Castle of Xàtiva built, and what was it used for?

Castle of Xàtiva was used as a fortress to defend the city and control an important route and frontier into the Kingdom of Valencia. After the conquest by James I and the creation of the Kingdom of Valencia, it also served as a state prison of the Crown of Aragon. It remained an active fortress through the early modern period before losing strategic importance after the eighteenth-century earthquake.

Where is Castle of Xàtiva?

Castle of Xàtiva is in Xàtiva, in the Valencia region of Spain. It stands on a rocky hill above the modern city, at a height of 310 metres, and overlooks the surrounding agricultural plain and distant low mountains.

When was Castle of Xàtiva built?

Castle of Xàtiva was built in phases rather than at one recorded date. Its origins reach back to a Celtiberian stronghold and Roman fortifications, while the larger Castillo Mayor was built during the medieval period. The first-raised year is not recorded.

Was Castle of Xàtiva ever attacked or besieged?

Castle of Xàtiva was attacked and besieged several times. The ruler of Valencia besieged it during the 1145 uprising, and James I of Aragon captured Xàtiva after a five-month siege ending on 22 May 1244. In 1707, Castilian and French troops defeated Aragonese and English troops sheltering in the fortress during the siege of Xàtiva, after which the castle surrendered.

What did Castle of Xàtiva look like in its prime?

At its height, Castle of Xàtiva was a long stone fortress arranged along a narrow rocky ridge. Pale-beige limestone curtain walls with crenellations and angled stretches climb the slope between the lower Castillo Menor and upper Castillo Mayor, with towers, keeps, ramped walkways, gates and terraces. Its architectural style is Valencian Gothic.

Is Castle of Xàtiva still standing, or is it a ruin?

Castle of Xàtiva is still standing as a partially ruined complex, with extensive surviving masonry, curtain walls, towers and terraces. It was seriously damaged by the 1748 earthquake and further affected during the War of the Spanish Succession and the War of the French. Some features were rebuilt or repaired, including the modern reconstruction of the Porta Ferrisa and the Gothic Chapel of Santa Maria.

Can you visit Castle of Xàtiva?

Castle of Xàtiva can be visited as a public tourist and cultural site. It contains permanent exhibitions, is managed by Xàtiva Town Council and is used for civil weddings. It is also designated a bien de interés cultural.
All castles of Spain · Castles of Europe · the best castles in Europe · explore the finished reconstructions.