The short answer (updated for the 2025 anti-okupa law)
Since April 2025, Spain’s anti-okupa law (Ley Orgánica 1/2025) lets police remove recent illegal occupants within roughly 48 hours of a reported break-in, and routes cases that miss that window into a fast-track criminal trial that can resolve in about 15–20 days — down from a pre-reform average of over 23 months. The old “your empty Spanish flat is a one-to-two-year legal hostage” story is no longer accurate for occupations caught early. The risk is now mostly about speed of detection, not the courts.
Okupación vs allanamiento — the distinction that decides everything
Spanish law splits unlawful occupation into two categories, and which one applies decides how fast you can act.
- Allanamiento de morada — breaking into an inhabited dwelling (your actual home or a home in active use). A clear criminal offence; police can act immediately.
- Usurpación (Penal Code Art. 245) — occupying a property that isn’t someone’s primary residence (an empty second home or investment flat). Still the category most foreign buyers fall under — but under the 2025 reform it is now handled far faster than before.
The new eviction timeline
Realistic timelines under Ley Orgánica 1/2025:
- ~48 hours — if the break-in is recent and reported promptly, police can remove occupants without waiting for a full court order (treated as a flagrant offence).
- ~15–20 days — for cases past the immediate window, via the fast-track criminal trial introduced by the reform.
- Longer — only where occupiers are formally assessed as “vulnerable” (e.g. families with minors): courts notify social services, who get a defined period (typically 1–3 months) to arrange alternative housing before eviction proceeds.
Where the 2023 Housing Law still matters
The 2023 Housing Law (Ley 12/2023) is separate from the 2025 anti-okupa reform. It mainly governs tenants — people with a contract — by extending protections for vulnerable renters and adding steps before their eviction. It does not shield criminal occupiers, and the 2025 law was specifically designed to close the perception that squatters were untouchable. Keep the two straight: tenant disputes (Ley 12/2023) are slow; criminal occupation (Ley Orgánica 1/2025) is now fast.
How to protect a property you’ve just bought
Because the new law rewards speed, prevention and fast detection matter more than ever:
- Monitored alarm with rapid private-security response — your early-warning system for the 48-hour window.
- Local manager visiting twice weekly so an occupation is caught in days, not weeks.
- Make it look lived-in — lights, shutters, post collection.
- Anti-okupa insurance — €200–500/yr, covers legal costs and sometimes lost rent if it still goes to court.
- Report immediately — the express removal route hinges on a prompt police report.
The bottom line for foreign buyers
The okupa risk in Spain has fallen sharply since April 2025. For a property you monitor, an occupation is now a days-to-weeks problem, not a years-long one. Price in monitoring and insurance, never leave a property visibly empty for long stretches, and react fast — and the risk is manageable.
Sources: Ley Orgánica 1/2025 (in force April 2025); idealista/news and Spanish legal commentary on the express eviction procedure and juicio rápido timelines, reviewed June 2026.