Renting & housing

Squatting in Spain: What You Can Legally Do as an Owner

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

🇪🇸 Read the original in Spanish

Illegal squatting (okupación) is one of the biggest concerns for property owners in Spain. The feeling of vulnerability upon discovering that a third party has entered your property without your consent generates not only financial damage but also deep emotional distress. The Spanish legal system provides legal mechanisms to recover possession of a property, but it is essential to act quickly, with a cool head, and in strict compliance with the law to prevent the remedy from being worse than the disease. Below, we analyze in depth what you can legally do if you find yourself in this situation, under the framework of current legislation.

Before initiating any legal action, it is essential to distinguish between two concepts that the Spanish Penal Code punishes very differently. The legal strategy and the speed of police intervention depend critically on this distinction.

The crime of trespassing (allanamiento de morada - Article 202 of the Penal Code)

This occurs when the occupied property constitutes the dwelling (morada) of a person, meaning the place where they reside and develop their private life.

The crime of usurpation of real estate (usurpación de bienes inmuebles - Article 245.2 of the Penal Code)

This occurs when the occupied property does not constitute anyone's dwelling. This is the typical case of empty apartments owned by banks, investment funds, or properties belonging to individuals that are abandoned, in ruins, or completely uninhabited and unfurnished.

If your property has been squatted, you have two major judicial routes at your disposal. The choice between them will depend on the circumstances of the squatting and the nature of the owner (an individual or a large property holder).

1. The civil route: Express Eviction (desahucio exprés - Law 5/2018)

This reform of the Ley de Enjuiciamiento Civil (Civil Procedure Act, or LEC) modified Article 250.1.4º to speed up the recovery of illegally occupied homes. It is the most recommended route for individuals, non-profit entities, and public administrations.

2. The criminal route: Complaint for usurpation or trespassing

This consists of filing a complaint (denuncia) with the Police, the Civil Guard, or the Duty Court (Juzgado de Guardia).

Practical Step-by-Step Guide in Case of Squatting

If you discover that your property has been squatted, you must strictly follow these steps to maximize the chances of a quick eviction:

  1. Do not enter the property or confront the occupants: Avoid any physical or verbal altercation that could be used against you.
  2. Gather the property documentation: Locate the deeds of sale (escrituras de compraventa) of the property, an updated property registry certificate (nota simple) from the Registro de la Propiedad (Property Registry), and your utility bills (electricity, water, gas).
  3. Go immediately to the police station or court: File a complaint detailing whether it is your habitual residence or a second home. Provide the gathered documentation and any proof of the recent occupation (witnesses, triggered alarms, photos).
  4. Request the precautionary eviction measure: Make sure the police officer writes the request for immediate precautionary eviction into the complaint.
  5. *Contact a lawyer (abogado) and court agent (procurador):* If the rapid police route does not work, you will need legal representation to file a civil express eviction lawsuit urgently.
  6. Do not cut off the utilities: Keep the water, electricity, and gas contracts active, no matter how unfair it seems (see the section on errors to avoid).

Deadlines, Costs, and Key Figures of the Process

The process of recovering a home involves financial costs and timeframes that vary depending on the chosen route and the backlog of the local courts.

Practical Examples of Squatting

To better understand how these dynamics operate in reality, we analyze two common scenarios.

Example 1: Squatting of María's second home

María has an apartment on the beach in Dénia that she uses during holidays and some weekends throughout the year. In November, a neighbor calls her to warn her that there are lights on and strange people inside.

María travels immediately, checks that the lock has been changed, and goes to the Civil Guard with the deeds to the apartment and the electricity bills in her name. Since it is a furnished second home ready for use, case law classifies it as a dwelling (morada). The Civil Guard, upon confirming the flagrancy and ownership, goes to the property, identifies the occupants, and, since they cannot show any contract, proceeds to evict and arrest them for an alleged crime of trespassing (allanamiento de morada). The process is resolved in less than 24 hours.

Example 2: Squatting of an empty apartment inherited by Carlos

Carlos has inherited an old apartment in Madrid that has been empty, unfurnished, and up for sale for a year. A group of people forces the lock and moves in. Carlos finds out two weeks later through the community of owners (comunidad de propietarios).

Since it is not furnished and does not constitute Carlos's dwelling, the case is classified as usurpation (usurpación — a minor offense). The police cannot evict directly because there is no flagrancy and it is not a dwelling. Carlos must hire a lawyer and file a civil express eviction lawsuit. The total cost of the procedure (lawyer, court agent, and locksmith) amounts to €1,400. The court takes 8 months to set the date for the eviction (lanzamiento), a period during which Carlos must continue paying the property tax (IBI) and community fees, assuming an indirect financial loss of about €2,500.

Errors You Must Avoid

In the desperation of seeing your property usurped, it is easy to make serious mistakes that can turn against you, making you, the owner, the accused party.

Frequently Asked Questions (FAQ)

What happens if the occupants have minor children?

The presence of minors is a highly sensitive factor. The 2023 Housing Law obliges courts to notify the competent social services before executing an eviction. If it is confirmed that the minors are left in a situation of helplessness or extreme vulnerability, the eviction can be temporarily suspended (normally between 1 and 2 months for individual owners, or up to 4 months if the owner is a large property holder) until the administration offers them a housing alternative.

Is it useful to hire an eviction company (empresa de desokupación)?

Legal eviction companies operate through mediation methods and access control (monitoring entry and exit while respecting the common areas of the building). They are legal as long as they do not use violence, intimidation, or forcibly prevent entry to the home while the occupants are inside. It is essential to ensure that the chosen company acts strictly within the framework of the law to avoid subsidiary criminal liability for the owner.

If my tenant stops paying the rent, are they a squatter?

No. Legally, a tenant who stops paying rent is not a "squatter" (okupa / usurper), but a defaulting tenant (arrendatario moroso). They entered the property legitimately through a contract protected by the Ley de Arrendamientos Urbanos (Urban Leases Act, or LAU). In this case, the criminal route for usurpation and the express eviction of the 2018 Law do not apply. A civil lawsuit for eviction due to non-payment (desahucio por falta de pago) regulated in the Civil Procedure Act must be filed.

Does home insurance cover the expenses derived from illegal squatting?

It depends on the policy contracted. Many mid-range and high-end home insurance policies include specific legal defense (defensa jurídica) coverage for cases of illegal squatting. This coverage usually covers lawyer and court agent fees up to a certain limit (for example, €3,000), and sometimes also covers compensation for material damage caused to the property or for lost rent. It is highly recommended to review the conditions of your policy.

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.