NextOnTrip

Castell de Rocafort

Martorell, Spain

About this place

Castell de Rocafort is a medieval castle ruin standing on a hill in the municipality of Martorell, in Catalonia's Baix Llobregat region. Listed as a cultural asset of national interest, little more than fragments of its walls remain today, yet the site still draws history lovers and hikers exploring the hills around the town.

Where exactly is the castle located?

Rocafort sits on a rise formed of red Triassic sandstone, right along the old route that connected Martorell with Gelida. That position was no accident: the castle belonged to a chain of fortifications running along the Anoia river, raised during the Middle Ages as a defense against Saracen raids. Its coordinates are 41.465278, 1.923333.

What is the history behind the site?

The story goes back to 1042, when the lords of Castellví founded a Benedictine priory here, dedicated to Sant Genís de Rocafort. Within a few decades the Knights Templar took over the site, settling next to the monastery of Sant Genís — and it is the Templars who are credited with building the castle itself in the 12th century. Around the same time a Romanesque church dedicated to Saint James went up on the grounds.

The defensive elements that survive today — a stretch of wall following the natural contour of the rock and a round-based tower — date to the mid-12th century. That timeline shows the castle wasn't built in a single campaign but expanded in stages across generations.

What has survived to the present day?

The largest and best-preserved structure on the site is now the Romanesque church of the Sant Genís de Rocafort monastery, dated to the late 12th or early 13th century. It is the church, not the castle walls, that serves as the main landmark for anyone visiting today. The rest of the fortifications survive only as fragments — a ruined wall and tower that let visitors imagine, rather than see, the original layout of the stronghold.

Why was the castle destroyed?

Rocafort's fate was sealed by the War of the Spanish Succession. On 19 July 1713, Philippist troops commanded by the Duke of Populi marched through Martorell and razed the castle almost entirely. Only the church was spared — likely because of its religious function — which explains why the temple, rather than the fortress, dominates the hilltop today.

How do you get there and what should you expect?

The castle lies outside the center of Martorell, on a hill covered in typical Mediterranean scrub of the Baix Llobregat area. The path to Rocafort is often combined with a visit to the nearby Castell de Sant Jaume, and together the two sites form a popular hiking loop for anyone looking to connect with the region's history away from the crowds of larger monuments. Sturdy footwear is worth packing, since the approach runs over uneven, rocky ground.

Frequently asked questions

Can you visit Castell de Rocafort? The ruins can be explored from the outside, though there is no visitor infrastructure on site — this is a spot for those who appreciate raw, unrestored traces of history rather than a rebuilt monument.

What remains of the original castle? A stretch of defensive wall and a round-based tower from the 12th century survive. The best-preserved building on the whole site, however, is the neighboring Romanesque church of the Sant Genís monastery.

Why did the castle fall into ruin? Philippist troops destroyed it in 1713 during the War of the Spanish Succession. The church survived that destruction, while the fortifications were almost completely wiped out.

Are there other attractions nearby? Yes — the Castell de Sant Jaume stands close by, and a popular hiking trail through the hills around Martorell links both sites.

Nearby places

Earn badges for the places you visit

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