Usurpation in Spain (arts. 245-247 CP): violent occupation, boundaries and water
Last updated:
listIn this article
lightbulbKey Takeaways
- check_circle245.1 CP: violent occupation or usurpation of a real right (1-2 years' prison)
- check_circle245.2 CP: peaceful squatting (fine) — separate guide
- check_circle246 CP: altering boundaries and markers (fine of 3-18 months)
- check_circle247 CP: diversion of water (fine of 3-6 months)
Quick answer
Usurpation is the group of property offences in articles 245 to 247 of the Spanish Criminal Code (CP) that protects possession of real property and certain real rights. Article 245.1 CP punishes occupying real property, or usurping a real right over another person's real property, using violence or intimidation against persons (one to two years' imprisonment, in addition to any penalties for the violence used); article 245.2 CP punishes the peaceful occupation of someone else's property that is not a dwelling (the so-called squatting, punished with a fine); article 246 CP punishes altering boundaries or markers; and article 247 CP punishes diverting water. The defence turns on the right of possession, the absence of violence and, where relevant, mistake.
Usurpation is the group of property offences that protects possession of real property and certain real rights against anyone who takes them over without title. It is set out in articles 245 to 247 of the Spanish Criminal Code (CP) and covers very different conduct: from occupying a property by force to moving the marker that separates two plots or diverting water from a watercourse. As criminal-defence lawyers handling usurpation offences, we explain what each provision punishes, the penalties involved and how the defence is built, with particular attention to the lesser-known variants: the violent occupation of 245.1, the alteration of boundaries of 246 and the diversion of water of 247.
Before turning to each figure, it is worth placing the best-known one. The peaceful occupation of someone else's property that is not a home — so-called squatting — is the variant of article 245.2 CP, and it has its own procedural problems (fast-track trial, interim eviction, defence strategies). We devote a dedicated guide to it and refer to it here so as not to repeat its content: illegal occupation of property. This article focuses on the other forms of usurpation.
What the offence of usurpation protects
Usurpation protects the possession of real property and the peaceful exercise of certain real rights. Unlike theft or robbery, which concern movable goods, usurpation bears on the immovable: estates, buildings, land, boundaries and uses such as water. The legally protected interest is not only ownership in the abstract, but the effective enjoyment of the property or right by the person entitled to it.
This explains a constant throughout the whole subject: the right of possession is the axis of the classification. A person who occupies or uses property under a title that entitles them to do so — ownership, contract, administrative authorisation, the owner's consent — does not commit usurpation, however much there may be a dispute over the scope of that title. In such a case the controversy is civil, not criminal.
Article 245.1 CP: violent occupation and usurpation of a real right
Article 245.1 CP punishes anyone who, using violence or intimidation against persons, occupies real property or usurps a real right over real property belonging to another. The penalty is one to two years' imprisonment, set according to the benefit obtained and the harm caused, and imposed in addition to any penalties incurred for the violence used (bodily harm, coercion, threats, as the case may be).
Two elements distinguish this offence from the rest:
- The violence or intimidation is directed at persons, not at things. Forcing a lock, on its own, does not turn the occupation into the 245.1 offence; what aggravates it is the use of physical force or threats against someone in order to occupy or to remain.
- The object can be a real right over real property, not just the land. Forcibly taking over a right of way, a usufruct or another person's right of use also falls within the provision. A mere dispute over who is right about the title is not enough: the offence requires that the taking be imposed through violence or intimidation.
Because of the penalty involved — imprisonment, as against the mere fine for peaceful occupation — the correct classification of the facts is decisive. The line between 245.1 and 245.2 turns precisely on whether or not there was violence or intimidation against persons.
Article 245.2 CP (squatting): cross-reference
Article 245.2 CP punishes occupying, without due authorisation, someone else's property, dwelling or building that does not constitute a home, or remaining in it against the owner's will, with a fine of three to six months. This is the conduct known as squatting and the most frequent variant in practice.
Given its social relevance and its procedural treatment — fast-track processing following the reform introduced by Organic Law 1/2025, the possibility of interim eviction, defences such as state of necessity — we devote a separate guide to it. To avoid duplication, we refer to it: illegal occupation: owner's rights and criminal defence. That guide also distinguishes squatting from violent usurpation, from breaking and entering a dwelling (art. 202 CP) and from the misnamed "tenant squatting", which is not a crime but a civil eviction.
Article 246 CP: altering boundaries and markers
Article 246 CP punishes anyone who alters the boundaries of towns or estates, or any kind of signs or markers intended to fix the limits of properties or the demarcation of adjoining plots, whether publicly or privately owned. The penalty is a fine of three to eighteen months. If the benefit obtained does not exceed 400 euros, the fine is reduced to one to three months.
It is a typical offence in rural neighbour disputes: moving a boundary marker, ploughing beyond the boundary to gain surface area, removing the milestones that delimit two plots. The key to the offence is the intent to take over another's land by altering the markers; not every disagreement about where the boundary lies is a crime. Where what exists is a simple dispute about the area or the dividing line, without deliberate manipulation of the markers to appropriate what belongs to another, the appropriate route is civil demarcation and boundary-setting, not criminal proceedings.
Article 247 CP: diversion of water
Article 247 CP punishes anyone who, without authorisation, diverts water of public or private use from its course, or from its natural or artificial reservoir. The penalty is a fine of three to six months and, if the benefit obtained does not exceed 400 euros, of one to three months.
It protects the legitimate use of water against anyone who diverts it for themselves without a concession or authorisation. The essential elements are the lack of authorisation and the actual diversion of the resource from its course or reservoir. It is a frequent figure in disputes over irrigation, water capture and use in farming areas, where it often overlaps with administrative water law; hence drawing the line between a mere administrative breach and the offence requires a careful examination of the title and of the specific use.
Summary of penalties (arts. 245-247 CP)
| Provision | Conduct | Penalty |
|---|---|---|
| 245.1 CP | Occupying real property or usurping a real right over another's real property with violence or intimidation against persons | Imprisonment of 1 to 2 years, in addition to any penalties for the violence used |
| 245.2 CP | Peacefully occupying or remaining in someone else's property that is not a home (squatting) | Fine of 3 to 6 months |
| 246 CP | Altering boundaries, signs or markers of properties or plots | Fine of 3 to 18 months (1 to 3 months if the benefit does not exceed €400) |
| 247 CP | Diverting, without authorisation, water of public or private use from its course or reservoir | Fine of 3 to 6 months (1 to 3 months if the benefit does not exceed €400) |
Lines of defence against a usurpation charge
Each variant calls for its own strategy, but there are lines of defence common to the whole group:
- Right of possession. This is the central defence. A person who occupies, sets boundaries or uses property under an enabling title — ownership, contract, administrative authorisation, the owner's consent — does not commit usurpation. Establishing the title in good time can shift the dispute to the civil courts and lead to the criminal case being dismissed.
- Absence of violence or intimidation. In article 245.1 CP this is decisive: if there was no force or threats against persons, the facts do not fit the aggravated, imprisonable offence, but, where applicable, the peaceful occupation of 245.2 (a fine) or fall outside criminal law altogether.
- Mistake. Mistake as to ownership of the right, as to the actual limits of the land (under 246) or as to authorisation for the use of the water (under 247) may exclude or mitigate intent, where the conduct stems from a reasonable belief and not from a will to take what belongs to another.
- Distinction from the civil or administrative route. Many disputes over boundaries, areas or water use are, in reality, civil matters (demarcation and boundary-setting) or administrative ones (water law), not crimes. Showing that the intent to take over another's property is absent is key to avoiding a criminal classification.
The settled case law of the Supreme Court requires, in these figures, a careful distinction between a legitimate property dispute and criminal conduct, which leaves real room for the defence when the case is worked on from the outset of the proceedings.
⚖️ Are you under investigation for usurpation or suffering the occupation of a property?
We analyse the title, the presence or absence of violence and the boundary with the civil route to build the defence or the complaint. A firm dedicated exclusively to criminal law, at Velázquez 27, Madrid.
Frequently asked questions
What is the difference between article 245.1 and article 245.2 of the Criminal Code?expand_more
It comes down to violence. Article 245.1 CP punishes occupying real property, or usurping a real right over another person's real property, by means of violence or intimidation against persons, with one to two years' imprisonment, in addition to any penalties for that violence. Article 245.2 CP punishes the peaceful occupation — without violence or intimidation — of someone else's property, dwelling or building that is not a home, or remaining in it against the owner's will, with a fine of three to six months. This is the conduct commonly known as squatting, to which we devote a separate page.
What does usurping a real right over real property mean?expand_more
Besides physically occupying the property, article 245.1 CP punishes taking over, by violence or intimidation, a real right attaching to someone else's real property: for example, forcibly arrogating to oneself a right of way, a usufruct or a right of use that belongs to another. A mere dispute over who is right about the title is not enough; the offence requires that the taking of the other person's right be achieved through violence or intimidation against persons.
Is altering boundaries or markers a crime?expand_more
Yes. Article 246 CP punishes anyone who alters the boundaries of towns or estates, or any kind of signs or markers intended to fix the limits of properties or the demarcation of adjoining plots, whether publicly or privately owned. The penalty is a fine of three to eighteen months; if the benefit obtained does not exceed 400 euros, the fine is one to three months. It is a common offence in rural neighbour disputes, where it is important to distinguish the intent to take over another's land from a simple disagreement about where the boundary lies.
What about diverting water from a watercourse or reservoir?expand_more
Article 247 CP punishes anyone who, without authorisation, diverts water of public or private use from its course, or from its natural or artificial reservoir. The penalty is a fine of three to six months and, if the benefit obtained does not exceed 400 euros, of one to three months. It is a form of usurpation that protects the legitimate use of water; the lack of authorisation and the actual diversion of the resource are the essential elements.
How is a usurpation charge defended?expand_more
Each variant has its own line, but there are common threads. The most important is the right of possession: a person who occupies or uses property under an enabling title (ownership, contract, authorisation, the owner's consent) does not commit usurpation, and the dispute shifts to the civil courts. Under 245.1 it is decisive to establish the absence of violence or intimidation against persons, which is what separates the aggravated offence from the peaceful occupation of 245.2. Mistake as to the boundaries of the land or as to ownership of the right or of the water may also apply. A case analysis from the outset of the proceedings is advisable.
gavelDo you need criminal defense in this area?
We are criminal defense lawyers specializing in illegal occupation (okupas). We act urgently to protect your rights.