About this place
Castelldefels Castle sits on a hilltop above the town of Castelldefels, a short distance southwest of Barcelona, and ranks among the best-preserved fortifications on this stretch of the Catalan coast.
How do you get there?
Castelldefels sits directly on the Barcelona–Sitges railway line, so the easiest option is the R2 Sud commuter train to Castelldefels station, followed by a short walk or taxi ride up to the castle hill — the final approach is steep but brief. Drivers will find parking close to the entrance. Check current opening hours before setting out, since the castle is open to visitors on a limited weekly schedule.
What is the history behind it?
The first fortification on this site is documented from the 10th century, built as a defensive outpost on the frontier of the Carolingian Spanish March, guarding against incursions from the neighboring Caliphate of Córdoba. The ancient parish church of Santa María stood within the same defensive walls.
The structure visible today largely dates from the 16th century, when it was expanded in response to the growing threat posed by the Ottoman Empire. Throughout the 16th and 17th centuries the castle served as a defensive point against raids by Barbary pirates active along the Mediterranean coast at the time.
Once the threat of piracy faded, the fortress lost its military purpose and fell into disrepair — by 1883 it stood in ruins. In 1897 the banker Manuel Girona commissioned architect Enric Sagner to restore it. Even so, the castle remained largely abandoned for decades until the Castelldefels municipality purchased it in 1988 and brought it back to a condition open to the public.
What will you see there?
The castle retains the layout typical of medieval defensive fortifications — stone walls, towers, and a courtyard that opens onto the old parish church built into the complex. From its highest point, visitors get one of the best views in the area: the town of Castelldefels below, the coastline, the Garraf Natural Park, and on clear days the silhouette of Barcelona on the horizon.
The site runs guided tours along with educational and cultural activities for different types of visitors, making it a good stop for solo travelers, families with children, and school groups alike.
When is the best time to visit?
The castle is open Tuesday through Sunday (including public holidays), from 10 AM to 7 PM, with last admission at 6 PM. Because the hill offers little shade, the most comfortable time to visit and photograph the panorama is early morning or late afternoon, particularly during the summer months when midday heat is at its peak.
Frequently asked questions
Is admission to the castle free? There's a standard admission fee, though free entry days are occasionally organized around local festivals — it's worth checking the events calendar before your visit.
How long should you plan for a visit? Seeing the castle itself takes about an hour, but allowing for the views, photos, and a guided tour, budgeting 1.5–2 hours is more realistic.
Can you walk up from the town center? Yes, it's a walkable route from central Castelldefels, though the final stretch climbs a steep slope — visitors with limited mobility may prefer to drive up instead.
Are there other attractions nearby? Yes — Castelldefels beach and the entrance to Garraf Natural Park are both close to the castle, making it easy to combine the visit with time at the seaside or a hike in the hills.
Nearby places
Earn badges for the places you visit
Download NextOnTrip, discover new places and check off your trails.