NextOnTrip

Castell de Santa Linya

les Avellanes i Santa Linya, Spain

About this place

Castell de Santa Linya stands above the village of Santa Linya, in the municipality of Les Avellanes i Santa Linya, in the Noguera comarca of Lleida province. Listed as a cultural asset of national interest in Catalonia, the fortress carries roots that reach back to the frontier wars between the Christian and Muslim worlds.

What was here before the Christian conquest?

Long before it became a Christian stronghold, the site held an Islamic hisn - a fortified settlement forming part of the frontier line drawn across this territory during the 10th and 11th centuries. No written sources survive from that Muslim period, so little is known about the fortress's earliest years. The first documented reference dates from the feudal conquest, when Count Ermengol II of Urgell and Arnau Mir de Tost, the future viscount of Àger, seized the castle between 1034 and 1036.

What happened once the castle changed hands?

In 1036, at the request of the local inhabitants, Ermengol II and his wife Constance of Besalú issued a charter setting out the terms of settlement for the place. That same year the count handed over half of the castle to the canonry of Santa Maria de la Seu. Peace, however, did not last: between 1046 and 1048 Andalusian forces recaptured the castles of Àger and Santa Linya, and the settlement was likely left depopulated for a time.

Who controlled the castle in the following centuries?

As the Andalusian frontier retreated further south, the castle and its lands passed into the hands of the Counts of Urgell and the Viscounts of Àger over the course of the 12th century. This is confirmed by the wills of successive counts - Ermengol VI in 1153, Ermengol VII in 1167, and Ermengol VIII in 1208 - each listing Santa Linya castle among the family's holdings.

Why is Castell de Santa Linya worth a visit?

The castle occupies a hilltop position overlooking the surrounding countryside, with views across the valley and the low hills typical of the Noguera comarca. Its main appeal lies in the history it embodies: nearly two centuries of border conflict between the Islamic world and the rising county of Urgell. For anyone interested in medieval Catalonia, it forms one link in a chain of frontier castles across Noguera, alongside the nearby fortresses of Àger, Montclús and Tartareu.

How do you get to the castle?

Castell de Santa Linya sits in the village of Santa Linya, part of the municipality of Les Avellanes i Santa Linya, in the Noguera comarca of Lleida province. Its approximate coordinates are 41.927°N, 0.801°E. The town of Les Avellanes makes the best starting point for exploring the area, with local roads leading on to the village of Santa Linya.

Frequently asked questions

When was Castell de Santa Linya built? The fortress originated as an Islamic hisn, a frontier fortification from the 10th-11th centuries. The first written record concerns its capture by Christian forces between 1034 and 1036.

Who conquered the castle for the Christian side? Count Ermengol II of Urgell, together with Arnau Mir de Tost, later viscount of Àger, between 1034 and 1036.

Was the castle ever retaken by Muslim forces? Yes - between 1046 and 1048, Andalusian forces recaptured the castles of Àger and Santa Linya, leading to a temporary depopulation of the settlement.

Who owned the castle in the 12th century? The Counts of Urgell and the Viscounts of Àger, as confirmed in the wills of Ermengol VI, VII and VIII, dated 1153, 1167 and 1208.

Nearby places

Earn badges for the places you visit

Download NextOnTrip, discover new places and check off your trails.