About this place
Castell de Gilareny is a medieval castle ruin standing above the Noguera Pallaresa valley, right next to the village of Llavorsí in the Pallars Sobirà region. It sits on a small hilltop at the point where the old paths linking the Noguera Pallaresa valley with the Noguera de Cardós valley used to meet — a position that explains why the site mattered for so long.
What's the history behind the castle?
Nobody knows exactly when it was built, though historians link its origins to the Carolingian period. The earliest written reference to Gilareny appears in a privilege from the year 966, by which Pope John XIII placed the monastery of Gerri and all its possessions — including this castle — under Rome's direct protection. A second key record dates to 1076, confirming that the fortress guarded the entrance to the Àneu, Cardós and Ferrera valleys for well over a century.
From the 12th century onward, following a period of internal disputes within the county's ruling family, Gilareny — like other castles in the region — passed definitively into the hands of the Artau dynasty. It was during this era that the castle earned its reputation as the last bastion of the county of Pallars, underlining how central it was to the defense of the territory. The region wasn't spared from conflict, either: Gascon forces invaded Pallars and seized several strongholds, including Berrós, Llavorsí, Escaló, Llort, and Gilareny itself.
What will you actually see?
What remains of the original structure is mainly the tower — nearly square in plan, with distinctively rounded corners — alongside a wide surrounding enclosure that extends toward the west. Today the whole site is a scattering of picturesque ruins set among green meadows, with views opening onto the Noguera Pallaresa valley and the surrounding Pyrenean peaks.
The site has a raw, unrestored character. This isn't a rebuilt tourist attraction — it's a genuine remnant of medieval defensive architecture, best appreciated in the context of the landscape that shaped it.
How do you get there?
The starting point is Llavorsí, a small village in Pallars Sobirà well connected by road to the rest of Catalonia. A hiking trail of roughly 1.5 km leads up to the ruins, rated very easy and taking about an hour round trip. The route suits most visitors, including families with children, though sturdy footwear is worth bringing given the uneven ground right around the ruins.
When should you visit?
Late spring through early autumn is the best window for the walk, when the trail is dry and the valley views are at their best. In summer, aim for a morning start to avoid the hottest hours, since the terrain is exposed with little shade. In autumn, the surrounding slopes take on rich seasonal colors that add to the scenery.
Frequently asked questions
Is there an entry fee for the castle? No, the ruins are freely accessible, with no fee and no fixed opening hours — it's open mountain terrain.
How long does a visit take? The trail from Llavorsí runs about an hour round trip; plan for an extra 20–30 minutes to explore the ruins and viewpoints at a relaxed pace.
Is the trail suitable for children? Yes, it's rated very easy, though care is advised near the walls themselves due to the uneven stone ground.
Are there other nearby landmarks worth visiting? Yes — the Pallars Sobirà region is dense with similar medieval fortifications, including nearby towers and castle remains along the Noguera Pallaresa valley that can easily be combined into one route.
Nearby places
Earn badges for the places you visit
Download NextOnTrip, discover new places and check off your trails.