Castelldefels is a municipality in the Baix Llobregat comarca, in the province of Barcelona in Catalonia, Spain, and a suburban town of the Metropolitan Area of Barcelona. Its population is 65,954.