Criminal law

Squatting in Spain: Trespassing vs. Usurpation in Spanish Law

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

🇪🇸 Read the original in Spanish

The unauthorized occupation of real estate is one of the phenomena that generates the most social, political, and legal debate in Spain. In colloquial language, the term "okupación" (squatting) is frequently used in a generic way, which generates enormous confusion among property owners and the general public, especially among foreign residents who are not familiar with the Spanish legal system. However, the Spanish Penal Code distinguishes strictly between two criminal offenses with radically different consequences, penalties, and eviction procedures: allanamiento de morada (trespassing/breaking and entering) and usurpación (usurpation/squatting). Understanding this difference is crucial, as the speed with which the Fuerzas y Cuerpos de Seguridad del Estado (State Security Forces and Bodies) can act to restore possession of the property to its rightful owner depends entirely on it.

The Thin Red Line: Trespassing vs. Usurpation

To understand how the Spanish legal system protects property and possession, we must turn to the Penal Code (approved by Ley Orgánica 10/1995 [Organic Law 10/1995]). The key to differentiating both crimes does not lie in whether the owner has one or several houses, but rather in the legal concept of "morada" (dwelling/home).

The Crime of Trespassing: Allanamiento de Morada (Art. 202 CP)

Article 202 of the Código Penal (CP - Penal Code) regulates the crime of allanamiento de morada. It is committed when a private individual, without living in it, enters another person's dwelling or remains in it against the will of its inhabitant.

The Crime of Usurpation of Real Estate: Usurpación (Art. 245 CP)

Usurpation, regulated in Article 245 of the Penal Code, refers to what is popularly known as a "kick in the door" in empty, abandoned, under-construction properties, or those owned by banking entities and investment funds that do not constitute anyone's morada.

Practical Step-by-Step Procedures in the Event of an Illegal Occupation

If you find yourself in the painful situation where your property has been occupied, acting quickly and calmly is decisive. These are the legal steps you must strictly follow:

  1. Verification and gathering of evidence: Confirm the situation without confronting the occupants. Take photographs or videos from the outside if possible, speak with neighbors to find out when they entered, and make sure you have your property deed (escritura de propiedad), a nota simple (land registry certificate) from the Registro de la Propiedad (Property Registry), and your identity documents on hand.
  2. Immediate report: Go urgently to the nearest Policía Nacional (National Police) station, Guardia Civil (Civil Guard) barracks, or the Juzgado de Guardia (Duty Court). Do not let hours slip by. It is vital to provide the documentation proving you are the owner and, if it is your first or second home, emphasize that it is your morada so that it is processed as allanamiento.
  3. Request for an urgent precautionary eviction measure: Through your lawyer in the criminal complaint, or through the civil procedure of the Ley de Enjuiciamiento Civil (LEC - Civil Procedure Act), request the immediate precautionary measure of eviction (under Article 13 of the Ley de Enjuiciamiento Criminal [Criminal Procedure Act]). If it is allanamiento de morada, the prosecution and judges usually authorize immediate police expulsion without waiting for a trial.
  4. Proof of ownership in court: If you opt for the civil route (the "express eviction" for individuals and non-profit entities), once the lawsuit is filed, the court will notify the occupants so that they can provide, within a period of 5 days, the title justifying their possession (for example, a rental contract). If they do not present it, the court will order an immediate lanzamiento (eviction/repossession date).
  5. Execution of the eviction: Once the judicial eviction order is obtained, a judicial commission accompanied by police forces and a locksmith will go to the property to physically recover possession and change the lock.

Key Deadlines, Costs, and Figures You Must Know

In occupation processes, time and financial costs play a crucial role. Here we break down the most relevant figures of the Spanish legal system:

Practical and Real-Life Examples of Application

Example 1: The case of Pierre's second home (Allanamiento de morada)

Pierre, a French citizen, owns a holiday apartment in Dénia (Alicante) valued at €180,000. He only goes there in summer and at Christmas, but the flat is furnished, has active electricity, and his personal belongings are there. In October, strangers force the lock and move in. A neighbor alerts Pierre, who flies to Spain and immediately files a report, providing his deeds.

As it is a second residence, Spanish jurisprudence classifies it as allanamiento de morada (Art. 202 CP). The police, under the direction of the Juzgado de Guardia, verify that it is Pierre's morada and proceed to the immediate eviction and arrest of the occupants within 24 to 48 hours, without needing to wait for a long trial.

Example 2: María's inherited and empty flat (Usurpación)

María inherits an old flat in Madrid that has been uninhabited for 3 years, without furniture, with utilities cut off, and on sale for €120,000. A group of people break the door chain and settle inside peacefully. María reports it a week later after finding out from the community of owners.

As it is an unoccupied property that does not constitute anyone's morada, the crime committed is peaceful usurpation (Art. 245.2 CP). The police cannot evict them immediately because the occupants have already established their de facto home there. María must initiate a criminal or civil judicial process. The eviction is delayed by 10 months, during which María stops receiving potential rent and must pay community fees and the IBI (property tax), adding up to estimated losses of €4,500.

Mistakes You Must Avoid

If you discover that your property has been occupied, making a mistake out of desperation or anger can turn you, the owner, into the criminal in the eyes of the law. Avoid at all costs:

Frequently Asked Questions (FAQ)

Can the police evict squatters if more than 48 hours have passed?

Yes, of course. The 48-hour limit is a popular myth with no basis in the Penal Code or the Ley de Enjuiciamiento Criminal. If the crime is allanamiento de morada (your habitual home or your second home), the police can act and evict at any time, as the crime of trespassing continues to be committed flagrantly and continuously every minute the usurpers remain inside your private space.

What happens if the squatters present a fake rental contract?

This is a very common tactic to delay the process. If they present a fake contract, the police cannot decide on the spot whether it is authentic or not, so they must refer the matter to the judge. However, your lawyer will immediately request an expert handwriting analysis or verification of security deposit (fianza) and rent payments. If the forgery is proven, the squatters will also face charges for falsedad en documento privado (forgery of a private document) and fraud.

Does Spanish law protect the squatter more than the owner?

Spanish law very strictly protects the constitutional concept of "domicilio" (inviolability of the home). The problem lies in the fact that, once a squatter enters an empty property (which is not a morada) and manages to establish their daily life there, that space legally becomes their "de facto home". To protect that space from arbitrary entries, the law requires a judge to order the eviction, which slows down the process due to the backlog in the administration of justice, not because the law seeks to protect crime.

Do I have to keep paying the mortgage and taxes while the house is occupied?

Unfortunately, yes. Illegal occupation does not exempt the owner from their financial and tax obligations. You must continue to pay the mortgage, the Impuesto sobre Bienes Inmuebles (IBI - Property Tax), rubbish collection fees, and community of owners fees. Non-payment of these concepts could lead to penalties or foreclosure actions against your assets. However, in the subsequent criminal or civil ruling, you can legally claim these amounts as damages, although the financial solvency of squatters is usually non-existent.

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.