Even as summer nears its end, Barcelona’s beaches remain bustling at night. Many locals and tourists choose to enjoy the summer evenings here, but it’s crucial to be aware that there’s a significant difference between lingering to enjoy the view and sleeping on the spot. According to local regulations, sleeping or camping on the sand is an illegal act that can result in a hefty fine.
Barcelona’s Regulations: Ban on Sleeping in Public Spaces
In December of last year, Barcelona updated and implemented a new ‘Ordinance on Civic Coexistence,’ replacing the previous version that was in force for two decades. While the new ordinance adjusts several clauses to tighten control over uncivil behavior, its core prohibition against sleeping or camping in public spaces remains unchanged.
The current regulation defines sleeping or camping in public areas such as streets, squares, and beaches, either during the day or at night, as improper use of public space. According to Articles 57 and 59 of the ordinance, this minor offense can be penalized with a fine of up to €500. The law clarifies that simply staying on the beach to chat or enjoy the night view is not illegal; penalties are only applied to individuals found sleeping or engaging in camping activities, such as setting up a tent.

Surrounding Cities: Similar Bans Are Common
This Barcelona regulation is not an isolated case; other coastal cities within its metropolitan area enforce similar rules. In Badalona, for example, its municipal beach ordinance directly classifies lying down to sleep as a form of camping. This ban is effective year-round, and enforcement does not lessen with the changing seasons. This July, the Badalona City Council also increased police patrols on the beaches and established fines ranging from €600 to €1,500 for other improper uses of public space, such as setting up personal tables and chairs.
Similarly, Castelldefels, located in the southern part of the Barcelona metropolitan area, also explicitly prohibits all camping activities on its beaches, based on Spain’s national Coastal Law (Ley de Costas). Together, these measures form the legal framework for maintaining order and protecting the environment on the region’s public beaches.