Property crimes
In short
“Squatting” (okupación) is not a legal term. Depending on the type of property, the Criminal Code (Código Penal) punishes it as one of these offences:
The distinction is decisive for both the owner and the accused, because it changes the penalty and the urgency of the response. On the Costa Blanca, with many second homes and properties that stay closed for months, there is often debate over whether an empty home was someone’s dwelling or not. The answer depends on the facts: actual use, furniture, utilities, periodic stays.
If the occupant moved in under a tenancy agreement and then stopped paying, it is not unlawful occupation: the problem is resolved through an eviction in the civil courts.
| Offence | Penalty | Article |
|---|---|---|
| Unlawful occupation of a property that is not a dwelling | A fine of 3 to 6 months | 245.2 |
| Unlawful occupation with violence or intimidation | 1 to 2 years in prison, plus the penalty for the violence | 245.1 |
| Trespass to a dwelling | 6 months to 2 years in prison | 202.1 |
| Trespass with violence or intimidation | 1 to 4 years in prison and a fine of 6 to 12 months | 202.2 |
| Entering an office, practice or business premises outside opening hours against the owner’s wishes | 6 months to 1 year in prison and a fine of 6 to 10 months | 203.1 |
If doors or locks are broken on entry, or damage is caused, a charge of criminal damage may be added. Illegally connecting to the electricity or water supply is another offence, punished with a fine of three to twelve months (article 255).
Alongside the criminal route, there are civil procedures for recovering possession. We study your case to decide which is quicker and more reliable.
Organic Law 1/2025 on measures for the efficiency of the Public Justice Service (Ley Orgánica 1/2025, de medidas en materia de eficiencia del Servicio Público de Justicia) added trespass to a dwelling (article 202) and unlawful occupation (article 245) to the list of offences dealt with through a speedy trial (juicio rápido), with effect from 3 April 2025 (article 795.1.2.ª of the Criminal Procedure Act, Ley de Enjuiciamiento Criminal). This requires a police report and for the person to have been arrested or summoned to the duty court.
In practice, this shortens time frames considerably: the investigation is carried out by the duty investigating section (Sección de Instrucción) of the Court of First Instance (Tribunal de Instancia), formerly the investigating court, and the trial can be held within a few days. If the accused admits the facts at the duty court, the sentence is reduced by one third (article 801). That is why it is important for the owner to have the documentation ready from the very first moment.
Being accused of unlawful occupation or trespass does not mean you are guilty. We go through the following with you:
If you are arrested, ask for a lawyer and do not make a statement without one. We assist you immediately: read more on our page on 24-hour lawyer for people under arrest. Leaving the property voluntarily and repairing the damage before trial can reduce the sentence (article 21.5).
Unlawful occupation is punished with a fine, but if it is not paid it is converted into one day’s deprivation of liberty for every two unpaid daily amounts, which can be served through community service if the convicted person agrees (article 53). Any conviction gives rise to a criminal record. In trespass cases, if the prison sentence does not exceed two years and it is your first offence, the judge may suspend it, normally on condition that compensation is paid (article 80).
Every case is different; once we have studied yours, we will give you a personalised written quote.
Trespass affects a person’s dwelling, the place where they live even if they are away, and is punished with six months to two years in prison (article 202). Unlawful occupation affects properties that are nobody’s dwelling, such as empty homes, and is punished with a fine of three to six months (article 245.2).
It depends on the case. Since April 2025, unlawful occupation and trespass can be dealt with through a speedy trial if there is a police report and the occupant has been arrested or summoned to the duty court. In addition, the judge can be asked to order eviction as an interim measure. Acting quickly and with complete documentation shortens time frames considerably.
It can be, if the home is your dwelling even though you do not use it all year round: furniture, utilities, periodic stays. In that case the penalty is six months to two years in prison (article 202). If not, it would be unlawful occupation. It is advisable to gather evidence of your actual use of the home.
It is not advisable. Forcing your way in, changing the locks with the occupants inside or cutting off utilities yourself may be considered an offence of coercion and harm your position. The right approach is to report it and ask the court for interim measures, including eviction.
If the home is nobody’s dwelling, occupying it without authorisation is the offence of unlawful occupation, punished with a fine of three to six months (article 245.2 of the Criminal Code). If violence or intimidation is used, the penalty is one to two years in prison. Charges of criminal damage or theft of utilities may be added.
Do you need help now?
On this page
Related services