Self-Defense: When the Law Protects Someone Who Fights Back
This page is a translation of the original Portuguese text, provided for convenience. It deals with Brazilian law. If there is any discrepancy, the Portuguese version prevails. Read the original in Portuguese
Self-defense is one of the situations in which the law allows you to react to an attack without that reaction being a crime. Understanding its requirements, the limits of moderation, and how it differs from other justifications that exclude unlawfulness is essential for anyone who must answer an accusation or wants to know how far the right to protect one’s own physical integrity extends.
What self-defense is and where it is established
Self-defense is established in Article 25 of the Brazilian Penal Code (Código Penal). The provision states that a person acts in self-defense when, using the necessary means moderately, he repels an unjust attack, whether current or imminent, against his own right or someone else’s. It is a ground that excludes unlawfulness: the act is still “typical,” meaning it matches the description of a crime, but it is no longer considered unlawful because the legal system authorizes the conduct.
In practice, this means that a person who injures or even kills someone to protect himself from an unjust attack is not liable for the crime, as long as all the legal requirements are present. The logic is simple: the State cannot be everywhere at once, and denying citizens the right to defend themselves would force them to passively endure violence.
It is important to keep two things separate. Self-defense is not a “free pass” to act violently. It is an exceptional authorization subject to strict limits. When those limits are exceeded, legal protection disappears and the person may be held liable for the excess. That is why each case requires close attention to the details of the facts.
The requirements of self-defense
For self-defense to be recognized, the law requires several elements to be present at the same time. If any one of them is missing, the justification falls apart and the reaction may become a crime. Let’s look at each requirement carefully, because this is exactly where most questions arise.
The first requirement is an unjust attack. An attack is human conduct that threatens or harms a legally protected interest, such as life, physical integrity, honor, or property. It must be unjust, that is, contrary to law. Someone who resists a lawful arrest order, for example, is not acting in self-defense, because a legitimate arrest is not an unjust attack.
The second requirement concerns timing: the attack must be current or imminent. A current attack is one that is happening now; an imminent attack is one that is about to happen. Self-defense is not allowed against an attack that has already ended, because in that case the reaction would be revenge, not defense. Nor is it allowed against a future, uncertain attack that may never even materialize.
The third requirement is protection of your own right or that of a third party. The law allows you to defend not only yourself but also another person. This is known as defense of a third party, and it permits you, for example, to step in to protect the victim of a robbery or a physical assault, even if you were not the original target.
The fourth requirement, and the most delicate, is the moderate use of the necessary means. The reaction must be proportionate to the attack suffered. The necessary means is the least harmful one available to repel the attack at that moment. Moderation means using that means only to the extent indispensable, without exaggeration. Responding to a shove with gunfire, for example, goes beyond the moderation the law requires.
There is also a subjective element that is rarely mentioned: the person must know that he is defending himself and intend to repel the attack. Legal scholars call this awareness of the defensive situation “animus defendendi.” Someone who provokes a fight in order to then “defend himself” is not protected by the justification.
It is worth noting that Law 13.964/2019, known as the anti-crime package, added a specific provision to Article 25, clarifying that a public security officer also acts in self-defense when he repels an attack, or the risk of an attack, against a victim held hostage during the commission of crimes. The rule reinforces the general requirements but does not expand them without limits.
Self-defense does not authorize revenge or punishment: it protects only a reaction that is necessary and proportionate to an attack that is still underway.
The provision states that a person acts in self-defense when, using the necessary means moderately, he repels an unjust attack, whether current or imminent, against his own right or someone else’s.
Self-defense and other justifications that exclude unlawfulness
Self-defense is only one of the grounds that exclude unlawfulness. Article 23 of the Penal Code lists four: necessity, self-defense, strict performance of a legal duty, and regular exercise of a right. Confusing these concepts is a common mistake, and the distinction matters greatly when designing a defense strategy.
The central difference between self-defense and necessity (estado de necessidade) lies in the source of the problem. In self-defense, there is an unjust human attack that must be repelled. In necessity, there is a present danger that does not necessarily come from an attack, and the person sacrifices one interest to save another. Someone who breaks down a neighbor’s door to escape a fire is acting out of necessity, not in self-defense.
The strict performance of a legal duty occurs when someone commits a typical act because the law requires him to act that way. Examples include a court officer (oficial de justiça) serving a warrant or a police officer carrying out a lawful order. The regular exercise of a right, in turn, covers conduct authorized by the legal system, such as the injuries expected in a contact sport played within the rules.
Notice that, although all of these concepts rule out a crime, they rest on different foundations. Correctly identifying which justification applies to the case is decisive, because each has its own requirements and produces different consequences in the proceedings. A poorly chosen argument can weaken the defense of someone who actually had the right to act.
Excess, putative self-defense, and other sensitive points
Recognizing that a situation of self-defense existed does not end the analysis. One of the most sensitive issues is excess. Excess occurs when a person begins acting within the limits of defense but goes beyond what is necessary to repel the attack. The sole paragraph of Article 23 is clear: the person is liable for the excess, whether intentional or negligent.
Intentional excess happens when the person, having already neutralized the attack, keeps attacking of his own will. Negligent excess occurs when he goes too far through recklessness, carelessness, or a mistaken assessment of how much force was needed. In both cases, the protection of self-defense covers only the proportionate part of the reaction, and the defense must show precisely where the legitimate act ends and the excess begins.
Another important point is putative self-defense. It arises when a person, through a mistake fully justified by the circumstances, believes he is facing an attack that does not actually exist. Someone who is startled at night by a figure in a threatening posture and reacts, sincerely believing he is under attack, may have his conduct analyzed as a mistake. The consequences vary depending on whether the mistake was avoidable.
It is also worth noting that Brazil’s higher courts have definitively rejected the so-called “defense of honor” argument in cases of violence against women, especially femicides. The settled understanding is that honor is a personal attribute and can never justify lethal violence against another person. Today, invoking this argument is not only legally unviable but also directly contrary to the constitutional protection of life and dignity.
From a strategic standpoint, all of this shows that arguing self-defense takes preparation. Evidence is essential: witnesses, footage, expert reports, messages, and a detailed reconstruction of how events unfolded. The word of the accused alone rarely supports the argument. That is why legal representation from the very first moment, including the investigation stage, is often decisive for the outcome.
It is also worth remembering that, in intentional crimes against life, the decision on whether self-defense existed is, as a rule, made by the Jury Court (Tribunal do Júri). This reinforces the need for a clear and coherent defense narrative, one capable of persuading not only legal professionals but also ordinary citizens serving as jurors.
Frequently Asked Questions
Can I claim self-defense if I reacted after the attack had already ended?
No. The law requires the attack to be current or imminent, meaning it is happening or about to happen. If the attack has already ended and the person sets out to retaliate, the conduct is no longer defense and is considered retaliation, which may constitute a crime. The timing of the reaction is one of the most closely examined points in this type of case, and every second makes a difference in the legal analysis.
Does self-defense apply to protecting property, and not just life?
Yes. Self-defense protects any right that is being unjustly attacked, including property. You may react to a theft or robbery in progress, for example. However, the moderation requirement still applies in full. The reaction must be proportionate to the value and nature of what is being defended, and using lethal force merely to protect material goods tends to be considered disproportionate, raising the issue of excess.
If I overreacted, do I lose all the protection of self-defense?
Not necessarily. The finding that a situation of defense existed remains relevant, but the person is liable for the part that went beyond what was necessary, known as excess, which may be intentional or negligent. In practice, this usually reduces the severity of the criminal response compared with a completely unjustified attack. That is why, even in cases of excess, the technical work of a lawyer is decisive in determining exactly how far the conduct was covered by the law.
Receba novidades por e-mail
Cadastre-se gratuitamente para receber nossos novos artigos.
Seus dados estão protegidos conforme a LGPD.
Ficou com dúvidas? Fale com um advogado especialista.
📱 Falar pelo WhatsAppAs informações deste artigo são de caráter informativo e não substituem consulta jurídica individualizada. Cada caso possui particularidades que exigem análise específica.






