Allanamiento de morada is the Spanish criminal offense of entering another person’s home without their consent, or refusing to leave once asked. Under Article 202 of the Penal Code, the basic offense is punished with six months to two years in prison, and the penalty rises to one to four years plus a fine when the entry or refusal to leave involves violence or intimidation.1Ministerio de Justicia. Spain Criminal Code The crime protects a right the Spanish Constitution treats as fundamental: the inviolability of the home.
What Counts as a Home Under Spanish Law
The concept of morada is wider than a house or an apartment. It covers any enclosed space a person actually uses for private living, even temporarily. Hotel rooms, caravans, rented vacation apartments, and houseboats all qualify, so long as someone is using the space as a residence at the time of the intrusion. What matters to Spanish courts is whether the space functions as a home for intimate daily life, not whether there is a deed or a permanent structure.
Secondary residences receive the same protection as a primary home while they are being occupied. A coastal house that sits empty most of the year is a protected morada during the weeks its owner lives in it. The protection follows the person, not the property.
Spaces that lack the character of private habitation fall outside Article 202. Abandoned buildings, warehouses, and shops open to the public are not moradas. Where a building mixes residential and commercial use, only the residential portion is protected under this provision; the shop floor below a shopkeeper’s apartment is covered instead by Article 203, which deals with intrusions into business premises and carries lighter penalties.1Ministerio de Justicia. Spain Criminal Code
The Two Ways the Crime Is Committed
Article 202.1 describes the offense in two forms. The first is entering someone else’s dwelling, where you do not live, without the occupant’s permission. The second is remaining inside after the occupant has told you to leave.1Ministerio de Justicia. Spain Criminal Code Both situations share the same core: the resident’s will is being overridden.
Consent can be express or implied. A verbal invitation is plainly express; implied consent exists when the occupant’s conduct, taken as a whole, shows the person was welcome, such as a family member who regularly visits without objection. Consent obtained by deception does not count. If a visitor lies about who they are or why they need to enter, any apparent agreement is legally meaningless.
The second form catches lawful entries that overstay their welcome. A dinner guest who refuses to leave, a former partner who will not move out after a breakup, or a repair worker who lingers after finishing the job can all cross into criminal conduct the moment the occupant clearly communicates that their presence is no longer welcome. The demand to leave need not follow any particular form; it only needs to be unambiguous.
Prosecutors must also show the intruder acted knowingly. Walking into the wrong apartment by mistake does not meet the intent requirement. The person must be aware they are entering or staying in someone else’s home without permission.
Penalties for the Basic and Aggravated Offense
Basic Offense
Entering a dwelling without consent, or refusing to leave when asked, carries a prison sentence of six months to two years. The basic form of the offense does not include a separate fine. Courts have discretion within the range to account for factors like the time of day, the length of the intrusion, and the impact on the occupant.
Aggravated Offense
When violence or intimidation accompanies the entry or the refusal to leave, Article 202.2 raises the penalty to one to four years in prison plus a fine of six to twelve months.1Ministerio de Justicia. Spain Criminal Code Violence covers any physical force used to enter or to resist leaving, from breaking down a door to pushing past the resident. Intimidation covers threats, whether explicit words or conduct that would make a reasonable person fear for their safety.
The fine uses Spain’s daily-fine system. Courts set a daily amount between €2 and €400 based on the offender’s income, assets, family obligations, and overall financial situation. A six-month fine covers 180 days; a twelve-month fine covers 360 days. The total fine for the aggravated offense can therefore range from €360 to €144,000 depending on the offender’s finances.1Ministerio de Justicia. Spain Criminal Code
Harsher Penalties for Public Officials
Article 204 raises the stakes when the intruder is a public authority or officer acting outside the situations permitted by law and without a justifying criminal offense. The applicable prison sentence is imposed in the upper half of the range, and the court adds absolute disqualification from public office for six to twelve years.1Ministerio de Justicia. Spain Criminal Code
In practice, this means an official who commits the basic offense faces one year and three months to two years in prison instead of the six months to two years available to a private citizen. For the aggravated form involving violence, the range shifts to two years and six months to four years. The disqualification strips the officer of their position and bars them from any public office during the disqualification period.
Allanamiento de Morada vs. Usurpación
Spanish law treats a break-in at an inhabited home very differently from the occupation of empty property, and this is the most common source of confusion in cases involving squatters (okupas).
Allanamiento de morada under Article 202 protects places where someone actually lives. It is an offense against privacy and the constitutional right to an inviolable home, so police can act immediately and penalties are more severe. Usurpación under Article 245 targets the occupation of vacant property: empty apartments, unused vacation homes, or buildings where nobody lives. It is classified as a crime against property rather than against personal privacy. Penalties for usurpación without violence are limited to fines, though the use of violence or intimidation can push the sentence up to two years in prison.
The practical difference matters. If someone breaks into your primary residence while you are away for the weekend, that is allanamiento de morada and police will intervene quickly. If someone moves into an apartment you own but have left empty for a year, that is likely usurpación, and the eviction process runs through slower channels.
When Police Can Lawfully Enter a Home
Article 18.2 of the Constitution allows only three paths into a person’s home: the occupant’s consent, a judicial warrant, or flagrante delicto, meaning someone caught committing a crime in the act.2BOE. The Spanish Constitution Spain’s Criminal Procedure Act adds that, under Article 553, officers may enter without a warrant when in hot pursuit of a suspect who takes refuge inside, or in cases of exceptional or urgent necessity.3Ministerio de Justicia. Spain Criminal Procedure Act
Consent must be genuine and free of coercion. Agreement given under pressure from the officers themselves is not valid. The flagrante delicto exception requires real certainty that a crime is being committed inside at that moment; a vague suspicion is not enough. Evidence obtained through an unlawful entry risks being excluded, and the officer who entered faces the elevated penalties under Article 204.
Self-Defense If Someone Enters Your Home
A resident facing an intruder does not have to stand by. Article 20.4 of the Penal Code recognizes legitimate self-defense as a complete defense that can eliminate criminal responsibility. Three conditions apply: the aggression must be unlawful and current, the defensive response must be proportional and necessary, and the defender must not have provoked the attack.
Proportionality is where most claims succeed or fail. Physically restraining an intruder until police arrive is almost always considered proportional. Using deadly force against an unarmed trespasser who poses no serious physical threat is almost certainly not. Spanish law does not recognize a broad castle doctrine presuming lethal force is justified simply because the intrusion occurred inside a home. Each case turns on its specific facts, with courts measuring the defensive action against the severity of the threat.
The “current” requirement means you cannot chase an intruder who has already fled and still claim self-defense. Once the danger has passed, a physical response becomes retaliation, which the law does not protect.
Consequences Beyond the Sentence
A conviction for allanamiento de morada carries effects outside the courtroom. A criminal record can affect employment, immigration status for non-Spanish residents, and professional licensing. Courts may order restitution for any property damage caused during the intrusion, separate from the criminal fine.
For victims, the criminal case does not block a parallel civil claim for property damage, emotional distress, or other losses. The criminal process addresses the state’s interest in punishing the offender; a civil action addresses the victim’s personal financial harm. Spain’s procedure allows civil claims to be joined to the criminal proceeding, so many victims pursue both at once rather than filing a separate lawsuit.