Sleeping in a properly parked car is legal in Spain. Local rules may restrict overnight stays, and outdoor equipment can turn a stop into camping.
Spain’s Dirección General de Tráfico sets the national rules for stopping and parking. Municipal restrictions can add another layer.
Sleeping inside a car is legal when the vehicle is correctly parked. The key question is whether the parking is permitted and whether the stop crosses into camping.
An overnight stay does not, by itself, make a parked car an illegal campsite. But setting up outdoor furniture or an awning can cross that line where camping is prohibited, according to the social media account Entre la calle y la ley. The distinction is between staying inside the vehicle and using the space around it as a campsite.
Local rules matter. Municipal ordinances may limit parking duration or overnight stays, and separate restrictions can apply in protected areas. A space that is generally available for parking may still have local limits, so drivers need to check the rules for the specific location.
A separate report described a restaurant manager in Málaga driving 220 km each working day to reach the job. That was a commuting story, not an overnight-parking case; the relevant distinction here is between parking a car and setting up camp beside it.
Safety is a separate concern. Anyone sleeping in a vehicle should choose a safe, well-ventilated place and keep the engine off to avoid inhaling harmful gases.