Public transport in Castelldefels belongs to the broader Metropolitan Area of Barcelona transportation network, organised around the entity Autoritat del Transport Metropolità. Castelldefels is both a dormitory town, with many commuters driving everyday into Barcelona, and an important locality in itself.