Renting & housing

Squatting in Spain: Trespass vs. Usurpation Explained

By the AbogadoAI editorial team · Updated 18 July 2026 · 12 min read

🇪🇸 Read the original in Spanish

The unauthorised occupation of properties has become one of the greatest concerns for homeowners in Spain, often fueled by terminological confusion between very different legal concepts. When a citizen or an expat resident faces the loss of possession of their property, they usually resort to the generic term "squatting" (okupación). However, Spanish legislation does not actually use this word in its Código Penal (Criminal Code). Instead, the legal system draws a sharp distinction between the crime of allanamiento de morada (trespassing/breaking and entering) and the crime of usurpación (usurpation/illegal occupation of uninhabited property). This technical distinction determines everything from the speed of police intervention to the applicable penalties. Understanding these differences, through the lens of current legislation and recent reforms, is the first crucial step to protecting your assets and acting with maximum legal efficiency.

To understand how Spanish law protects property and possession, we must look to the Código Penal (CP / Criminal Code), the Código Civil (CC / Civil Code), and procedural laws. The cornerstone of this entire matter is not the right to property itself, but the constitutional concept of the inviolability of the home (Article 18.2 of the Constitución Española / Spanish Constitution).

Trespassing — Allanamiento de Morada (Article 202 of the Criminal Code)

The crime of allanamiento de morada is committed when a private individual, without living in it, enters the home of another (morada ajena) or remains in it against the will of its inhabitant.

Usurpation — Usurpación de Inmuebles (Article 245 of the Criminal Code)

The usurpación de inmuebles, technically known as the peaceful occupation of uninhabited properties, occurs when someone occupies, without due authorisation, another person's property, home, or building *that does not constitute a morada***, or remains in them against the will of the owner.

The Role of the Ley de Arrendamientos Urbanos (LAU) and the Housing Law

The Ley 29/1994 de Arrendamientos Urbanos (LAU / Urban Leasing Act) regulates rental contracts. When a tenant stops paying rent, they are not a squatter in criminal terms, but a defaulting tenant (arrendatario moroso). Their initial possession was legitimate (they had a contract). This scenario is governed by civil law through a desahucio por falta de pago (eviction for non-payment).

Meanwhile, the recent Ley 12/2023 por el derecho a la vivienda (Housing Right Act) has introduced modifications to the Ley de Enjuiciamiento Civil (LEC / Civil Procedure Act), requiring additional procedural requirements for grandes tenedores (large property holders — owners of more than 5 or 10 residential properties, depending on the autonomous community) before starting eviction processes, forcing them to prove whether the occupants are in a situation of economic vulnerability.

2. Key Differences: Trespassing vs. Usurpation vs. Non-Payment of Rent

To quickly visualise the legal scenario, we analyse the differences in this comparative table:

| Criterion | Trespassing (Allanamiento de Morada) | Usurpation (Usurpación) | Non-Payment of Rent (Defaulting Tenant) | | :--- | :--- | :--- | :--- | | Type of property | First or second residence (morada). | Empty, unused property, commercial premises (not a morada). | Property rented through a lease agreement. | | Legal route | Criminal (preferred and urgent). | Criminal (slow) or Civil. | Civil (Eviction verbal trial / Juicio verbal de desahucio). | | Police intervention | Immediate (delito flagrante / flagrant crime, without a warrant). | Requires a judicial eviction order (except in very rare exceptions). | Impossible without a final court eviction ruling. | | Severity of penalty | Prison (6 months to 4 years). | Financial fine (3 to 6 months) if without violence. | No criminal penalty (it is a civil dispute). |

3. Practical Step-by-Step Procedures in Case of Illegal Occupation

If you discover that your property has been occupied, the procedure varies drastically depending on the type of crime. Here is your legal roadmap:

Step 1: Identify the type of property and the time elapsed

Determine if the property is your morada (first or second residence) or an empty property. Although the urban myth says that after 48 hours you can no longer kick out squatters, the law does not establish any hourly deadline. The key is whether it constitutes your morada and if the crime is flagrant (is being committed at that very moment).

Step 2: File the complaint immediately

Go to the Policía Nacional (National Police) station, the Guardia Civil (Civil Guard) barracks, or the Juzgado de Guardia (Duty Court).

Step 3: The civil route (Alternative for usurpation or non-payments)

If the property was empty (usurpación) and the criminal route is dragging on, or if it is a case of non-payment of rent, you must file a civil eviction lawsuit in the Juzgados de Primera Instancia (Courts of First Instance) of the place where the property is located.

Step 4: Execution of the eviction

Once the judgment or eviction order is obtained, a date and time will be set for the lanzamiento (eviction execution). A judicial commission, aided by the Fuerzas y Cuerpos de Seguridad del Estado (State Security Forces) and a locksmith, will intervene in this act to physically regain control of the property.

4. Practical Examples with Real Figures

Example 1: The trespassing of María's second home

María owns an apartment in Dénia (Alicante) which she uses during the summer and some weekends. The market value of the flat is 220,000 €. One weekend in May 2024, neighbours warn her that lights are on and music is playing. Strangers have forced the lock and settled inside.

Example 2: The usurpation of a flat inherited by Carlos

Carlos inherits a flat in Madrid from his aunt that has been closed and up for sale for more than 2 years. It has no furniture, utilities have been disconnected, and the flat is valued at 180,000 €. A group of people break the door and move in to live there.

5. Mistakes You Must Avoid

Making a tactical or legal error out of desperation can transform the owner (the victim) into the accused party of a criminal offense. Strictly avoid the following:

6. Frequently Asked Questions (FAQ)

Is it true that if 48 hours pass, you can no longer evict a squatter?

No, this is an absolute myth. Spanish criminal law does not mention any 48-hour limit. If the property constitutes your morada (first or second residence), the crime of trespassing is continuous, and the police can intervene and evict at any time the flagrancy of the crime is verified. In the case of empty properties (usurpación), the difficulty of immediate eviction lies in the need for a judge to assess whether the right of possession has been violated, not in a specific hourly timeframe.

What happens if the squatter presents a fake rental contract?

This is a common fraud. If the occupants present a fake rental contract to simulate legitimate possession, the police usually refrain from evicting on the spot to avoid making a mistake, referring the case to the Juzgado de Guardia. In court, your lawyer must immediately request a handwriting expert test or prove the falsity of the document (for example, by showing that the signatures do not match or that there are no transfers of the fianza (security deposit) or monthly rents of 900 €) to request a precautionary eviction for fraud and document forgery.

Who pays for the damage and utilities while the house is occupied?

The owner is obliged to keep paying the utility bills if they are in their name to avoid being reported for coercion. Once the property is recovered, the owner can legally claim the cost of the utilities paid, lost rent, and the cost of repairing damages from the occupants. However, in 95% of usurpation cases, the occupants declare themselves insolvent, meaning the owner ends up absorbing the entirety of the financial losses.

Does the new Housing Law protect squatters?

The Ley 12/2023 por el derecho a la vivienda introduces procedural obstacles for evictions, but these mainly affect civil processes for non-payment of rent or precarious occupation initiated by grandes tenedores (landlords with more than 5 or 10 urban residential properties). If you are a small owner (fewer than 5 properties), the requirements for prior conciliation and proof of vulnerability do not apply with the same rigidity, and under no circumstances does the law protect the trespassing (allanamiento de morada) of private individuals' homes.

7. In Summary

General legal information, not personalised legal advice. For your specific situation, ask your question for free at AbogadoAI — answers grounded in Spanish law (BOE), in English.

Have a specific legal question?

Ask AbogadoAI and get an answer based on Spanish law (BOE), with sources — in English.

Ask for free

This is general information, not legal advice. Verify on the BOE or consult a lawyer for your specific case.