Criminal law

Self-Defence in Spain: Legal Requirements to Avoid Liability

By the AbogadoAI editorial team · Updated 18 July 2026 · 11 min read

🇪🇸 Read the original in Spanish

Self-defence is one of the most debated and, often, worst understood concepts in Spanish criminal law. There is a popular belief, heavily influenced by cinema, that any aggression justifies a violent response. However, the legal reality in Spain is much more restrictive and technical. For self-defence (or the defence of third parties) to completely exempt a person from criminal liability, a series of strict legal and jurisprudential requirements must be met. In this article, we will analyse in depth how the Spanish Código Penal (Criminal Code) regulates this justification, what practical steps arise from a criminal process where it is claimed, and how Spanish courts assess it on a day-to-day basis.

Self-defence is not an unlimited right, but rather a justification (causa de justificación) that removes the unlawfulness of conduct that, under normal conditions, would constitute a crime (such as causing bodily harm or, in the most extreme case, homicide).

The reference regulatory framework is found in *Article 20.4 of the Código Penal (Organic Law 10/1995, of 23 November)*. This provision establishes that the following is exempt from criminal liability:

> “Anyone who acts in defence of their own person or rights, or those of others, provided that the following requirements are met...”

For the exemption to be complete (meaning the individual is entirely free from criminal penalties and civil liability arising from the offence), the law and the jurisprudence of the Tribunal Supremo (Supreme Court) require the simultaneous presence of three objective requirements and one subjective element.

The Three Cumulative Requirements for a Complete Exemption

The absence of any of these three requirements prevents the application of a complete exemption (eximente completa). This can lead, in the best-case scenario, to an incomplete exemption (eximente incompleta)—which drastically reduces the sentence—or, in the worst-case scenario, to an ordinary conviction.

1. Unlawful Aggression (the sine qua non requirement)

This is the cornerstone of self-defence. No defence is possible if there is no prior or imminent attack. Jurisprudence requires the aggression to meet the following characteristics:

In the case of defending one's dwelling or its outbuildings, the Código Penal expressly clarifies that unauthorized entry into it (allanamiento de morada / home invasion) will be deemed an unlawful aggression.

2. Rational Necessity of the Means Employed to Prevent or Repel It

This is the point that generates the most controversy in court. One must not confuse "proportionality of means" with a mathematical equality of weapons. The law speaks of "rational necessity" (necesidad racional).

This means that the defender must use the least harmful means available to them to neutralize the danger, taking into account the circumstances of the specific case (age, physical strength, location, time, availability of objects, etc.). If a physically large person is attacked with fists by someone notably weaker, shooting them with a firearm will not be considered a rational response if they could have repelled the aggression in another way.

3. Lack of Sufficient Provocation by the Defender

The person defending themselves must not have previously and sufficiently provoked the aggression. The provocation must be of such a nature that it is logical for the provoker to have foreseen the other person's violent reaction. If the defender severely insults or lightly assaults someone first, and that person responds disproportionately, it will be very difficult for the initial provoker to claim the complete exemption of self-defence.

The Subjective Element: The "Intent to Defend"

In addition to the three objective requirements, jurisprudence requires the animus defendendi (intent to defend). The individual must act with the intention and purpose of defending their legal rights (life, physical integrity, property) or those of a third party. If one acts out of mere revenge, resentment, or with the intent to fight (mutually accepted brawl), self-defence is ruled out.

The Incomplete Exemption: What Happens If a Requirement Is Missing?

If unlawful aggression is present (the essential requirement) but the proportionality of the means used fails or there was some provocation, we find ourselves facing an incomplete exemption (eximente incompleta), regulated in *Article 21.1 in relation to Article 68 of the Código Penal***.

In these cases, the judge or court will impose a sentence that is one or two degrees lower than that specified by law for the crime committed.

Practical Examples and Proportionality Analysis

To understand how Spanish courts apply these concepts, we will analyse two hypothetical scenarios based on Spanish judicial reality.

Example 1: The Break-in at Carlos's Home

Carlos, aged 65, is sleeping in his chalet early on a Sunday morning. At 03:00 hours, he hears a loud noise and discovers that an intruder has broken the living room window and entered the house carrying an 80-centimetre iron bar. The intruder rushes towards Carlos, shouting that he is going to kill him. Carlos, who practices hunting legally, grabs his shotgun (properly registered) and fires a single shot at the assailant's leg to neutralize him, causing severe injuries that require hospitalization and result in permanent damage valued at €12,000 in civil compensation.

Example 2: Javier's Bar Fight

Javier is in a bar and gets into a heated verbal argument with Luis over a football match. Luis, visibly drunk, pushes Javier with both hands. Javier, who is a judo black belt, responds by delivering a powerful punch to Luis's face, causing him to fall to the ground and hit his head against the edge of the bar. Luis suffers a traumatic brain injury, the recovery and permanent sequelae of which are valued at €45,000.

Step-by-Step Practical Procedures in a Self-Defence Situation

If you have been forced to defend yourself against an aggression and have caused injuries or damage to the aggressor, you will immediately find yourself involved in a process regulated by the Ley de Enjuiciamiento Criminal (LECrim / Criminal Procedure Act). These are the steps you must follow:

  1. Immediately call emergency services (112): It is crucial to be the first to report the incident. Request medical assistance for yourself and, if necessary, for the aggressor. This demonstrates to the judge a lack of cruelty and the presence of animus defendendi.
  2. Police appearance and reading of rights: The Policía Nacional (National Police) or Guardia Civil (Civil Guard) will arrive at the scene. If the aggressor has serious injuries, it is highly likely they will proceed with your preventive arrest to bring you before a judge within the maximum constitutional period of 72 hours.
  3. Mandatory legal representation: Do not make a statement to the police without the presence of a specialized criminal defence lawyer. Everything you say in the initial police report (atestado policial) can shape your defence for the rest of the proceedings.
  4. *Instruction Phase (Diligencias Previas): The Juzgado de Instrucción* (Investigating Court) will open an investigation. Your defence must request key evidence: security camera footage, eyewitness statements, forensic reports on your own injuries (proving the prior aggression), and psychological assessments proving a state of terror or post-traumatic stress.
  5. Oral Trial Phase: If the investigating judge considers there is sufficient evidence of a crime, the oral trial (juicio oral) will open (before the Juzgado de lo Penal / Criminal Court, the Audiencia Provincial / Provincial Court, or even a Jury Court if there is a homicide). It will be in this phase where the application of the exemption under Article 20.4 of the Código Penal is formally debated.

Mistakes You Must Avoid

Frequently Asked Questions (FAQ)

Can I use a firearm to defend myself if someone enters my house?

Only if the assailant is armed with a weapon of similar lethality (a firearm, a large knife, an axe) and shows an unequivocal intent to physically assault the residents. If the intruder flees upon being discovered, or is unarmed, shooting them negates proportionality and will lead to prison sentences.

Does self-defence exist to protect material property?

Yes, the Código Penal protects the defence of "one's own rights or those of others", which includes property. However, jurisprudence is extremely strict: causing serious injury or death to a person will never be justified to prevent the theft of a material object (such as a car or a wallet) if there was no real and imminent risk to the life or physical integrity of individuals.

What is third-party self-defence?

It is the act of defending another person who is being unlawfully attacked. The requirements are exactly the same as for self-defence, with the addition that, if the third party being attacked had provoked the assailant, the defender must not have taken part in that provocation.

Who has to prove that I acted in self-defence?

In Spanish criminal proceedings, the presumption of innocence prevails, so the prosecution (the State Prosecution and the private prosecution) must prove the commission of the crime. However, in practice, when a cause for exclusion of liability such as self-defence is alleged, it is up to the defence to provide sufficient indications and evidence (witnesses, medical reports, reconstruction of events) to make the presence of the requirements demanded by the Código Penal plausible.

In Summary

General legal information, not personalised legal advice. For your specific situation, ask your question for free at AbogadoAI — answers grounded in Spanish law (BOE), in English.

Have a specific legal question?

Ask AbogadoAI and get an answer based on Spanish law (BOE), with sources — in English.

Ask for free

This is general information, not legal advice. Verify on the BOE or consult a lawyer for your specific case.