Castelldefels: castle, five kilometres of coast and the R2 Sud train

Castelldefels is a town of about 69,700 people on the coast south-west of Barcelona, with five kilometres of shoreline, a castle on the hill and a commuter train that reaches Barcelona in roughly 20 minutes. It suits a beach-and-city split: a base for the sea with day trips into Barcelona, or a day out from the city. It is not a resort with a single holiday centre, and it is quiet away from the seafront. It is part of our Costa de Barcelona guide.

Castelldefels: castle, five kilometres of coast and the R2 Sud train
Castelldefels: castle, five kilometres of coast and the R2 Sud train

Quick facts

  • Where: Castelldefels, Baix Llobregat comarca, Barcelona province, Catalonia, between the sea and the Garraf hills.
  • Residents: 69,689 (2025, Idescat).
  • Beach: yes. The town council gives the coastline as five kilometres (2025).
  • Train: Rodalies R2 Sud, the Garraf line from Sant Vicenç de Calders to Barcelona Estació de França. The castle page of the town council puts the town 20 minutes from Barcelona.
  • Nearest airport: Barcelona El Prat. There is no direct train from the airport to Castelldefels; the usual route changes at El Prat de Llobregat station.
  • Hub city: Barcelona.
  • Language: Catalan and Spanish are both used; Spanish works everywhere.
  • Market day: we found no fixed weekly market in the sources we could read; ask at the tourist office.

Where to base yourself

Castelldefels works as a base for people who want the sea within reach and Barcelona on the same train line. The choice is between the old centre and the seafront. We have not measured walking distances between the areas below, so check a map for the exact distance from your hotel to the train station.

The centre and the castle hill

The town centre is where the castle stands, at Plaça del Castell 1, and where one of the two municipal tourist offices is, at Carrer Pintor Serrasanta 4. This is the best base if you want shops and everyday life rather than a holiday strip, and if the train to Barcelona matters more than a sea view. Expect to walk or take a short ride to the sand.

The seafront and Passeig Marítim

The beach tourist office is on the Passeig Marítim, at number 155. Staying along this promenade suits beach days, swimming and walking along the water, with the compromise that you are further from the castle and the centre. In the high season this is where the lifeguard posts and beach services are concentrated (see the beach section below).

Near the Olympic canal

The Canal Olímpic sits at Avinguda del Canal Olímpic 2. It is an option for sporty visitors who plan to paddle, cycle or skate and want to start early; it is a base for activity, not for restaurants and nightlife.

Things to do

Castelldefels is a modest town for sights. Three things carry most visits: the castle, the Olympic canal and the beach, plus the Garraf hills for walking.

Castell de Castelldefels and the Piratia exhibition

The castle stands on a hill above the town, and the town council describes it as 20 minutes from Barcelona with views of the Mediterranean and the Garraf natural park. The earliest clear document the council cites is dated 29 September 967, when a vineyard was donated to a monastery at Kastrum Felix. The castle was restored in 1550 as a defence against Barbary corsairs, and the banker Manuel Girona i Agrafels restored it again in 1897. In 1937 it was used as a military recruitment and training centre, and from March 1938 to January 1939 as a disciplinary prison for the International Brigades. The town council bought it in 1988. Inside you will find a centre about piracy on the Catalan coast, called Piratia, and the old church.

The council publishes the museum’s visiting days, the garden hours and the admission rates, and they change by season and year, so check the town council page before you go. Because the museum opens mainly at weekends, a weekday visit may only get you the gardens.

The Olympic canal

The Canal Olímpic de Catalunya was created by the Catalan Institute of the Sun for the canoeing events of the Barcelona 1992 Games. The water surface is 1,250 m by 130 m, and a 2,800 m asphalt circuit runs around it (Baix Llobregat tourism). Visitors can hire canoes, kayaks, stand-up paddle boards and bicycles, among other things, and the site also has a cable ski facility. Hours and prices change, so confirm them on the operator’s site before you go. If you only want a walk or a bike ride, the circuit is the point; if the sports do not appeal, it is easy to skip.

Walking in the Garraf hills

The Garraf park has an information point in Castelldefels, on Passeig Marítim 155, open every day, mornings and late afternoons, according to the park. The page lists signposted trails and public transport and free parking among its features, but it does not name individual routes, so ask there for current maps and closures. If you plan a longer hike, treat the hills as a half-day outing and carry water.

Beaches and places nearby

The town council gives Castelldefels five kilometres of coastline, and calls its beach a metropolitan reference point where leisure, sport and food come together. The 2025 high season ran from 1 June to 24 September, with five fixed lifeguard points, six surveillance chairs, open showers and four shade pergolas (town council). Dates change from year to year, so check the council before you plan around them. We have not found a Blue Flag listing with a year that we could read for this beach, so we do not state one.

Along the same coast you can reach Sitges by the R2 Sud train: the Visit Sitges site gives about 24 minutes from El Prat de Llobregat to Sitges. Closer by, the Garraf hills rise behind the town. Our Costa de Barcelona guide covers the wider coast.

Other town guides nearby: Sitges (about 15 km in a straight line), Calafell (about 35 km in a straight line), El Vendrell (about 37 km in a straight line).

Food and drink

We could not find a local dish or product that the town’s own tourist pages document, so we do not name one. The tourist site has restaurant and gastronomy pages, and the Passeig Marítim is the natural place to look for places to eat near the sand. We have not checked individual restaurants and do not recommend any by name. For a more specific answer, ask at either municipal tourist office.

Where to stay

The town has hotels and holiday rentals; the tourist board’s own site has a “Where to sleep” section. Accommodation near the seafront is the more expensive choice in summer and the better one for beach days, while the centre is calmer and closer to the station. We have not checked current rates, and this page contains no booking links. Book early for July and August.

Getting there and around

The simplest way to arrive is the Rodalies R2 Sud train. Rodalies lists Castelldefels among the main stations of the line, which runs from Sant Vicenç de Calders to Barcelona Estació de França. On weekdays the Castelldefels to Granollers Centre section has a train every 10 minutes at peak hour and every 30 minutes off-peak, while the full line runs every 15 minutes at peak and every 30 minutes off-peak (Rodalies). The town council puts the castle 20 minutes from Barcelona.

From El Prat airport, you cannot ride direct to Castelldefels. Visit Sitges describes the airport route to Sitges as one stop to El Prat de Llobregat, where you change to a train in the opposite direction; check the timetable for the Castelldefels direction. By road, the castle page of the council gives the C-32 and C-245. Buses E95 and L95 stop at Dr. Marañón, at Plaça Joan XXIII, for the castle. We did not find official walking times from the station to the castle or the beach, so look at a map before you set out with luggage.

Best time to visit

The beach season is the main reason to come: in 2025 the town council ran its full beach services from 1 June and its lifeguards until 24 September. The castle is open mainly at weekends outside July and August, so visit on a Saturday or Sunday if you want the museum. Spring and autumn are good for walking in the Garraf hills and cycling around the canal. For forecasts and monthly averages, check AEMET. We did not find a fixed local festival date with a year in the sources we could read, so check the town agenda before you plan around events.

FAQ

Is Castelldefels worth visiting?

Yes, if you want a beach and a castle within a train ride of Barcelona. It is not a destination for nightlife or a dense old quarter, and a day is enough for the castle, the canal and the seafront.

How long does it take to get from Barcelona to Castelldefels?

The town council describes the castle as 20 minutes from Barcelona, and the R2 Sud train is the usual way to go. Check the timetable on Rodalies for your departure station.

Does Castelldefels have a beach?

Yes. The town council gives the coastline as five kilometres, and the high season in 2025 ran from 1 June to 24 September with lifeguard posts along the shore.

Can I go from the airport to Castelldefels by train?

Not directly. Visit Sitges says the airport route to the R2 Sud goes via El Prat de Llobregat, where you change. Check the current timetable.

Is the castle open every day?

Not every day. The museum is open mainly at weekends and on public holidays, while the gardens have longer hours; check the council’s current schedule before you go.

Sources and freshness

Last checked: October 2026. Sources: Idescat, municipal figures; Castelldefels town council, castle, practical information and history; town council, 2025 beach season; Rodalies, R2 Sud; Visit Sitges, R2 Sud; Baix Llobregat tourism, Olympic canal; Garraf park information point; Castelldefels tourism; AEMET.

Main photo: Simon Burchell, CC BY-SA 3.0, via Wikimedia Commons.

Castelldefels on the map

How this page is maintained. CostaMap is written and maintained by an AI editorial system built by ebizapple. Facts are drawn from primary sources — town halls, museums, port and heritage authorities and the Spanish archaeological record — and where sources disagree, we say so rather than smooth it over. Photographs marked as ours are taken on location. This page was last reviewed on 28 October 2026. Opening hours, prices and transport change; check the official source before you travel.

Scroll to Top