Property lawDictionary
Squatters in Spain: the law and how to recover your home
What is squatting (okupación)
Haby sums it up:
Squatting (okupación): Okupación (squatting) is entering or staying in someone else's home or property without the owner's permission or any title to justify it. The law doesn't use that word: depending on the case, it's allanamiento de morada (breaking into a dwelling) or usurpación (unlawful occupation) under the Código Penal (Spanish Criminal Code), and the owner can also reclaim the home through the civil courts.
Dealing with this now? Verified estate agencies on abitta.
On this page
The Código Penal distinguishes two offences depending on what is occupied. If it's someone's dwelling (morada), article 202 punishes allanamiento with prison from six months to two years, and from one to four years if there is violence or intimidation. If the property isn't a dwelling, article 245.2 punishes occupying it without authorisation, or staying in it against the owner's will, with a fine of three to six months. It isn't the same as an inquiokupa (squatter tenant), who moved in with a rental contract.
Allanamiento or usurpación: what's the difference
The key is whether the home is a morada, the space where a person lives their private life. The protocol the Ministerio del Interior (Ministry of the Interior) approved in 2020 for the Policía Nacional and Guardia Civil treats as a morada both a main home and a second home used at weekends or on holiday. In a flagrant allanamiento, officers can evict and identify the occupants, and arrest them if appropriate, without waiting for a court order.
With usurpación of a property that isn't a morada, action is also immediate if the offence is discovered while it's being committed. If not, court authorisation is needed: the owner proves ownership, states their objection and it's checked that the occupants have no title. A request can then be made to the judge for the precautionary eviction under article 13 of the Ley de Enjuiciamiento Criminal (Criminal Procedure Act). In its Instrucción 1/2020, the Fiscalía (Public Prosecutor's Office) advises adding to the police report a certificate from the Registro de la Propiedad (Land Registry) with an electronic signature.
What routes you have to recover your home
Through the criminal courts, since 3 April 2025 allanamiento and usurpación can be tried by the fast-track procedure (juicio rápido) when the case starts with a police report (atestado) and the other requirements are met, following the reform of the Ley de Enjuiciamiento Criminal made by Ley Orgánica 1/2025. When you report it, state expressly that you want the eviction of the occupants to be requested.
Through the civil courts, article 250.1.4 of the Ley de Enjuiciamiento Civil (Civil Procedure Act) allows the immediate recovery of the home to be requested by an individual who is the owner or lawful possessor, by non-profit organisations entitled to possess it and by public social housing bodies. Once the claim is admitted, the occupants have five days to produce a title; if they can't justify it, the judge orders the eviction by court order (auto), with no appeal. It's a different procedure from the eviction (desahucio) of a tenant.
What happens if vulnerable people are involved
If minors, people with disabilities or other people in a situation of helplessness live in the home, the Fiscalía asks for social services to step in before the eviction, and in civil proceedings the court also notifies them if the home is the occupants' main residence. The right route is always a criminal complaint or a civil claim: the eviction is ordered by a judge or carried out by officers in a flagrant offence.
If you have an empty home and can't decide whether to sell it or rent it out, you can start by valuing your home for free.
Example
Andrés owns an inherited flat in Valencia, empty and for sale. When he goes to show it, he finds the lock has been changed. As it isn't his morada, the case fits usurpación under article 245.2 of the Código Penal, punishable by a fine of three to six months. Andrés reports it that same day, provides a registry certificate and expressly asks for the precautionary eviction. As an individual owner, he could also file the civil claim under article 250.1.4, in which the occupants would have five days to show a title.
Frequently asked questions
Can the police evict squatters without a court order?
Yes when the offence is flagrant, for both allanamiento and usurpación. If the occupation of a property that isn't a morada isn't detected while it's happening, court authorisation is needed, according to the Ministerio del Interior protocol.
Does a second home count as a morada?
According to the Ministerio del Interior's 2020 protocol, yes: a home used at weekends or on holiday is considered a morada, and occupying it is allanamiento.
What's the penalty for occupying an empty home?
Without violence, a fine of three to six months (article 245.2 of the Código Penal). With violence or intimidation, prison from one to two years plus the penalties for the violence.
Is there a fast-track trial for squatting?
Yes. Since 3 April 2025 the Ley de Enjuiciamiento Criminal includes allanamiento de morada and usurpación among the offences that can go through a fast-track trial (juicio rápido) if the case starts with a police report.
Add
to your Google favorites
If you add abitta to your Google favorites, Google is more likely to show you our dictionary explanations, news and guides when you search for housing topics, also in AI Overviews and AI Mode. It takes you to Google and you add it with one click.