Check a property

Home › Guides › Okupas in Spain: what the law says and how buyers protect themselves

Buyer risks

Okupas in Spain: what the law says and how buyers protect themselves

Squatters (okupas) in an empty Spanish property are usually committing usurpación, a minor offence punished with a fine, so removing them normally takes a court order. Occupying a home someone lives in, including a second home in use, is allanamiento de morada, which carries prison and can be dealt with much faster. Buyers should make vacant possession a condition of the contract.

Updated 29 October 2026 · Checked against official Spanish sources · Not legal advice

  • Official sourcesChecked against BOE, Agencia Tributaria, Catastro and other primary sources
  • Updated for 2026Every figure dated and linked to where we checked it
  • IndependentNo agent, developer or lawyer paid to appear on this page
  • Property checkSend us an address and we check it against public records
Allanamiento de morada (art. 202.1 Código Penal)
6 months–2 yrs prison
Non-violent usurpación (art. 245.2 Código Penal)
3–6 month fine
Occupants must show a title in the civil express claim
5 days
Time limit for the summary possession claims (LEC art. 439.1)
1 year
  • Two different offences. Entering or staying in someone's morada (dwelling) is allanamiento de morada (art. 202 Código Penal): 6 months to 2 years in prison. Occupying a property that is nobody's dwelling is usurpación (art. 245.2): a fine of 3 to 6 months.
  • The police can enter and remove occupants without a court order only with consent or in a flagrante delito (art. 18.2 of the Constitution). Report an occupation the moment you discover it.
  • Fast-track trials: since 3 April 2025 (Ley Orgánica 1/2025) allanamiento and violent usurpación can go through the juicio rápido. The everyday non-violent usurpación goes through the minor-offences trial instead, according to the State Prosecutor's Circular 1/2025.
  • The civil express claim (LEC art. 250.1.4º, added by Ley 5/2018) is open to individual owners, non-profits and public social-housing bodies. Occupants get 5 days to show a title; if they can't, the court can order them out. It must be filed within one year of the occupation.
  • Buying: visit, check the nota simple, ask the community administrator, and write vacant possession (libre de ocupantes) into the arras contract and the deed.

What counts as okupación

An okupa (also spelled ocupa) is someone who moves into a property, or stays in it, without the owner's consent and without any title such as a lease. There is no single "okupa law": the answer depends on which offence the facts fit, and on which of three legal routes the owner uses. Two cases are not okupación at all, even though Spanish media often lump them together:

  • A tenant who stops paying rent. The tenant came in with a lease, so this is a tenancy eviction (desahucio por falta de pago) under the civil procedure rules. See our guide to eviction in Spain.
  • A tenant who stays after the lease ends (desahucio por precario or expiry of the term). Also civil, also covered in the eviction guide.

The popular belief that squatters "gain rights after 48 hours" does not come from any article of law. What protects occupants after the first moments is the constitutional rule that a home (domicilio) is inviolable: under article 18.2 of the Spanish Constitution nobody may enter it without the occupant's consent or a court order, except in a flagrant crime. Once occupants are living there, the police usually need a judge.

Allanamiento de morada vs usurpación

The decisive question is whether the property is someone's morada: a place where a person lives, including a second home they use. Courts decide this on the facts, so a holiday home that is visibly furnished and used is in a much stronger position than a flat that has stood empty for years or a bank-owned repossession.

Allanamiento de moradaUsurpación without violenceUsurpación with violence or intimidation
Criminal CodeArt. 202.1 (202.2 with violence)Art. 245.2Art. 245.1
What is occupiedA dwelling someone lives in, including a second home in useA property, home or building that is not anyone's dwellingAny property, taken by force or threats
PenaltyPrison 6 months to 2 years; 1 to 4 years plus a fine with violenceFine of 3 to 6 months (day-fine system)Prison 1 to 2 years, plus the penalty for the violence
Criminal procedure since 3 April 2025Fast-track trial (juicio rápido) if art. 795 LECrim conditions are met; otherwise jury courtMinor-offences trial (juicio sobre delitos leves, arts. 964 ff. LECrim)Fast-track trial if art. 795 LECrim conditions are met

For a typical foreign owner, the honest summary is this: if squatters get into a holiday home you actively use, you have the strongest protection the law offers. If they get into a property that is empty and unfurnished, you are usually dealing with the minor offence of usurpación and, in practice, with a civil claim.

What the police can do

The police can remove occupants at once when the occupation is a flagrante delito: a crime being committed or just committed, with the occupants caught in the act or immediately afterwards. Article 795 of the Criminal Procedure Act (LECrim) uses exactly that definition. That is why speed matters: a neighbour who calls the police the night the door is forced gives them something to act on; an owner who finds out three months later usually does not.

Outside a flagrant case, the police take a report (denuncia), identify the occupants if they can, and pass it to the duty court. The owner then needs a court decision, in the criminal or the civil route below.

If you discover an occupation, report it immediately to the Policía Nacional, Guardia Civil or local police, and take your title deed (escritura) or a recent nota simple plus proof that you use the property (utility bills, IBI receipts, photos). Do not change the locks, cut off water or electricity or remove belongings yourself: that can expose you to a criminal complaint of coacciones.

The fast-track criminal route after Ley Orgánica 1/2025

Ley Orgánica 1/2025, on the efficiency of the public justice service, took effect on 3 April 2025. It added two letters to article 795.1.2ª of the LECrim: "i) Delitos de allanamiento de morada del artículo 202" and "j) Delitos de usurpación del artículo 245". Those offences can now be handled through the procedimiento para el enjuiciamiento rápido, the fast-track trial heard by the duty court.

Two limits matter in practice:

  • The fast track needs a police report and a suspect. Article 795 only applies where the case starts with a police atestado and the police have detained the suspect or summoned them to appear before the duty court, and the case is expected to be simple to investigate.
  • Non-violent usurpación is a minor offence. The State Prosecutor's Circular 1/2025 (26 June 2025) tells prosecutors that the minor offence of occupying property in article 245.2 goes through the trial for minor offences (juicio sobre delitos leves), while allanamiento (art. 202) and violent usurpación (art. 245.1) use the fast track when the article 795 conditions are met.

In the criminal route the prosecutor or the owner's lawyer can also ask the judge for an interim order to vacate (a medida cautelar de desalojo) while the case runs. Whether one is granted, and how quickly, depends on the court.

The civil express claim (Ley 5/2018)

Ley 5/2018 added a fast civil claim to recover a home, now in article 250.1.4º of the Civil Procedure Act (LEC). It is often the more predictable route for an owner of an empty property.

PointWhat the LEC says
Who can use itIndividuals who own the home or possess it lawfully, non-profit entities entitled to possess it, and public bodies that own or lawfully possess social housing (art. 250.1.4º). Companies, banks and investment funds cannot.
Against whomWhoever is living there; the claim can also be served on unknown occupants, and the court officer can be accompanied by the police to identify them (art. 441.1 bis).
The key stepIf the owner asks for immediate possession, the occupants are required to produce a title justifying their occupation within 5 days. If they don't, the court orders by auto that they leave and the home is handed back, with no appeal against that order (art. 441.1 bis).
What the occupants can argueOnly that they have a sufficient title to possess the home, or that the claimant has none (art. 444.1 bis).
Time limitClaims to keep or recover possession are not admitted more than one year after the occupation (art. 439.1).
What the claim must stateWhether the property is the occupants' habitual home and whether the claimant is a large holder (gran tenedor). An owner who says they are not a large holder must attach a Land Registry certificate listing their properties (art. 439.6, added by the 2023 housing law).

A gran tenedor is a person or company that owns more than ten urban residential properties or more than 1,500 m² of residential floor space, excluding garages and storerooms; a region can lower the threshold to five homes inside a declared stressed housing area (Ley 12/2023, art. 3.k).

Registered owners who cannot use the express claim, such as companies, still have the summary claim of article 250.1.7º LEC for rights recorded in the Land Registry, and the ordinary claim to recover ownership (acción reivindicatoria). Both are slower.

Vulnerable occupants and suspensions

Where the home is the occupants' habitual residence, the court must tell them how to contact the regional and local social services, and must itself notify those services so they can assess vulnerability and propose alternative housing (LEC art. 441.5, as reworded by the 2023 housing law, Ley 12/2023). If vulnerability is confirmed, the court can suspend the case for up to two months if the owner is an individual, or four months if the owner is a company (art. 441.6).

Separately, since 2020 a temporary decree-law power (article 1 bis of Real Decreto-ley 11/2020) has let judges suspend the removal of economically vulnerable occupants without title, but only where the home belongs to a company or to an individual with more than ten homes. It never applies to a home that is an individual owner's habitual residence or second home, to occupations involving violence or intimidation, or where the home is used for illegal activity (art. 1 bis.7). Its end date has been extended and challenged repeatedly: the BOE's consolidated text, last updated 28 February 2026, gives 31 December 2025, after Congress voted down the decree-laws that would have extended it through 2026 (Real Decreto-ley 16/2025 and Real Decreto-ley 2/2026). Ask your lawyer whether any suspension power is in force on the date you act.

How to check a property isn't occupied before you buy

  1. Visit in person, or send someone you trust, and see inside every room. Signs of occupation: post in other names, utilities running in an "empty" flat, new locks, a reinforced door.
  2. Visit more than once, including an evening or a weekend, if the property has been empty for a while.
  3. Read the nota simple. Registered leases and notes of pending court claims (anotaciones preventivas de demanda) appear there. Informal occupation does not.
  4. Ask the community administrator (administrador de fincas) whether the flat is occupied and whether community fees are up to date. A run of unpaid fees on an "empty" flat is a warning sign.
  5. Talk to neighbours. They usually know more than the agent.
  6. Write it into the contract. Your lawyer can make vacant possession (libre de ocupantes y arrendatarios) a condition of the arras contract and the deed, with the right to withdraw and recover your deposit if it isn't met.
  7. Visit again just before completion and take the keys at the notary, not later.

Once it is yours, the practical protections are the boring ones: an alarm, a neighbour or key holder who looks in, regular visits, and evidence that you use the home (bills, a home insurance policy, photos), because whether it counts as your morada may decide how fast you get it back.

Buying a property sold as "ocupada"

Portals list homes as ocupada, sin posesión or vivienda ocupada, often well below market price and usually sold by banks and funds. The discount pays for real costs and risks that pass to you:

  • You can't inspect it or get a survey, so the condition is unknown.
  • You take on the eviction, its legal costs and its timetable.
  • The one-year clock may have run. The summary possession claims, including the civil express claim, must be brought within a year of the occupation itself (LEC art. 439.1). If the home was occupied long before you buy, your lawyer may have to use the slower ordinary claim.
  • Vulnerability checks can add months where the occupants live there as their home.
  • Lenders generally won't lend on an occupied home, so these are cash purchases.
  • Debts may come with it: unpaid community fees and IBI can attach to the property.

These deals suit investors with local legal support and cash. For a home to live in or let, they are rarely a shortcut. For the other legal traps that catch buyers, see our list of pitfalls of buying property in Spain.

Step by step

  1. Check before you commit

    Visit inside more than once, read the nota simple, and ask the community administrator and neighbours.

  2. Make vacant possession a condition

    Your lawyer writes "libre de ocupantes" into the arras contract and the deed, with a right to your deposit back.

  3. Take the keys at the notary

    Visit again just before completion and collect the keys at signing.

  4. If it happens, report at once

    Call the police immediately with your deed or nota simple. Speed decides whether it is a flagrant crime.

  5. Choose the legal route

    With a lawyer: criminal complaint, the civil express claim within one year, or the ordinary claim.

Sources checked
Questions

Common questions

What is the difference between allanamiento and usurpación?

Allanamiento de morada is entering or staying in a home someone lives in, including a second home in use, and carries 6 months to 2 years in prison. Usurpación is occupying a property that is nobody's dwelling; without violence it is a minor offence punished with a 3 to 6 month fine.

Can the police evict squatters in Spain straight away?

Only with the occupants' consent, a court order, or when the occupation is a flagrant crime caught as it happens or just after. That is why owners should report an occupation the moment they discover it.

Did Ley Orgánica 1/2025 speed up okupa evictions?

It added allanamiento de morada and usurpación to the fast-track trial procedure from 3 April 2025. The State Prosecutor's Circular 1/2025 says non-violent usurpación, the usual okupa case, goes through the minor-offences trial instead, so many owners still rely on the civil express claim.

Is there a time limit to use the civil express claim?

Yes. Claims to recover possession must be filed within one year of the occupation (article 439.1 of the Civil Procedure Act). After that, the owner usually needs the slower ordinary claim.

How can I check a Spanish property isn't occupied before buying?

Visit inside more than once, talk to the community administrator and neighbours, check the nota simple for registered leases or claims, and make vacant possession a condition of the arras contract and the deed.

Should I buy an occupied property sold cheap?

Only with a lawyer who has reviewed the occupation, any court cases and a realistic timeline and cost. You usually can't view inside, lenders rarely lend, and you take on the eviction yourself.

Check the property before you sign

An address or a referencia catastral is all we need to start. In English.

Check a property