It's always a shock when illegal occupants enter
Eviction and Penal Code in Spain

Eviction of squatters in Spain: What Can You Do?
When someone illegally occupies your property, especially if you live in another country or it is a second residence, it can be a very stressful experience. In Spain, the law distinguishes between two situations, and which one it is affects the speed of eviction.
If the occupied dwelling is your home, that is, the place where you live, even if occasionally, like a second residence you use on vacation, it is considered a crime of home invasion (article 202 of the Penal Code), punishable by prison sentences. Furthermore, since September 2020, Instruction 1/2020 from the Attorney General's Office facilitates requesting eviction as a precautionary measure.
If the occupation is detected in the early hours, the police can act immediately, as it is a flagrant crime. That’s why it is important to report as soon as possible and provide evidence that the place is your home.
If the dwelling is not anyone’s home, for example, an empty apartment, the crime of usurpation (article 245 of the Penal Code) applies, with lesser penalties. Since April 2025, with Organic Law 1/2025, both home invasion and usurpation can be processed as fast-track trials, which significantly shortens the timelines. To request it, it is advisable to file the complaint along with the simple note from the Property Registry and evidence of the occupation.
In summary, if you are a victim of illegal occupation, you must act quickly and document your relationship with the property well. This will facilitate the eviction of squatters in Spain and avoid long procedures.
For more information on how to defend your rights as a property owner, visit the official page of the Ministry of the Interior here .
This article is for informational purposes and does not replace legal advice. Regulations may change: always consult your case with a professional.

