Castelldefels (Catalan pronunciation: [kəsˌteʎdəˈfɛls]) is a city in the Baix Llobregat comarca, in the province of Barcelona in Catalonia, Spain, and part of the Metropolitan Area of Barcelona. Its population was 65,954 in 2017.