Introduction of BNS Section 17
BNS Section 17 protects individuals who act based on their honest belief that their actions are legal, even if they are mistaken about the facts. If you do something thinking it is allowed by law, you won’t be punished as long as your intentions were genuine. This protection does not apply if you misunderstand the law itself; it only covers mistakes about the facts.
The Bharatiya Nyaya Sanhita (BNS) Section 17 replaces the old Indian Penal Code (IPC) Section 79.
What is section 17 BNS ?
BNS section 17 says that if you do something because you believe it is allowed by law, you will not be punished. It also covers situations where you make a mistake about the facts but think you are doing the right thing. As long as you honestly believe you are following the law, even if you are mistaken, you are protected from criminal charges.

Bharatiya Nyaya Sanhita Section 17
Whoever does an act that is justified by law, or who, because of a mistake of fact, in good faith believes himself to be justified by law in doing that act, shall not be held criminally liable.
(This provision corresponds to IPC Section 79, now updated under BNS 2023.)
1. Meaning of Section 17
BNS Section 17 protects individuals who act either:
- under a lawful justification, or
- under a genuine mistake of fact, believing in good faith that their actions were lawful.
This section ensures that no person is punished if they honestly believed they were doing the right thing, based on facts as they understood them.
Important: This section does not protect mistakes of law (ignorance of law is no excuse).
2. Purpose of Section 17
The key objectives of this section are:
- To protect honest actions done under a genuine belief of legality.
- To separate mistake of fact (protected) from mistake of law (not protected).
- To encourage people to act in good faith, without fear of unjust punishment.
3. Essential Ingredients of Section 17
For protection under this section:
- The act must be justified by law, or believed to be so.
- The person must have made a mistake of fact, not of law.
- The belief must be held in good faith (honestly, without malice).
- The act must be performed with the intention of acting lawfully.
4. Punishment under BNS Section 17
- No Criminal Punishment: If conditions are satisfied, no criminal liability arises.
- Civil Liability Possible: The person may still face civil action (e.g., damages) if harm is caused.
5. Examples of BNS Section 17 in Action
Example 1 – Mistaken Identity Arrest:
A police officer arrests a man, genuinely believing he is a wanted criminal. Later, it turns out the officer was mistaken. Since it was a mistake of fact and done in good faith, the officer is protected.
Example 2 – Protecting Property:
A person sees another breaking a lock and, believing them to be a thief, restrains them. Later, it is revealed that the person was the rightful owner. Since the act was based on mistaken facts, no offence is committed.
Example 3 – Self-Defense Mistake:
Someone attacks in the dark, and a person retaliates thinking it’s a robber. If it turns out to be a friend playing a prank, the defender is still protected because he acted under a mistake of fact in good faith.
Importance of BNS Section 17
- Provides legal safety for those acting in good faith.
- Prevents unfair punishment for genuine mistakes.
- Clarifies that mistake of fact = excusable, but mistake of law = not excusable.
- Continues the principle of IPC Section 79, making it clearer in modern language.
BNS Section 17 explanation
BNS Section 17 states that if you do something because you believe it’s allowed by law, you won’t be punished. This also applies if you make a mistake about the facts but think you’re doing the right thing. As long as you genuinely believe you are following the law, even if you’re wrong, you won’t face criminal charges.
1. No Crime for Justified Actions
BNS Section 17 says that if you do something because you honestly believe the law allows it, then it will not be considered a crime. The law recognizes that people may act based on their genuine understanding, and if their action was done with honest belief, they should not be punished. This ensures fairness for those who act in good faith.
2. Mistake of Fact Protection
If a person makes a mistake about the facts of a situation but acts thinking they are doing the right thing, they are protected under this section. For example, if you mistakenly believe someone is a thief and stop them, but later it turns out they were innocent, you are not guilty because your mistake was about the facts, not the law.
3. Good Faith Required
The most important requirement is that your actions must be in good faith, meaning you honestly and sincerely thought you were following the law. If your actions were based on bad intentions, selfish reasons, or dishonesty, then this protection does not apply. The law protects only genuine mistakes, not intentional wrongs.
4. Mistake of Law Not Covered
This section makes it very clear that if you misunderstand the law itself, you will not be protected. For example, if you say, “I didn’t know stealing is illegal,” that is a mistake of law, and you can still be punished. The protection applies only when you make a mistake about facts, not when you misunderstand the legal rules.
5. Honest Belief Matters
The law looks at whether you had an honest belief that you were doing the right thing. Even if the action was wrong in reality, your sincere belief that it was legal can save you from criminal punishment. However, your belief must be reasonable and based on facts as you saw them.
6. Legal Justification
Section 17 protects people who act with what they think is legal justification. For example, if you stop someone because you thought they were attacking another person, you are not guilty even if later it turns out they were not fighting. The law accepts that you acted with justification based on the situation you understood.
7. Example
Suppose you see a person taking goods from a shop and you believe they are stealing. You stop them and hand them over to the police. Later, it turns out they had already paid, and it was a misunderstanding. In this case, you are not guilty of any offense, because you acted in good faith, based on the facts you believed to be true.
8. No Criminal Charges
This section assures that if your actions were based on a mistaken fact, but you thought you were right, you will not face criminal charges. The law will not punish you for an error that was not intentional. It gives people confidence to act without fear when they believe they are doing the lawful thing.
9. Good Faith Actions
The protection of Section 17 applies only when actions are carried out in good faith. This means that if you acted with honesty and without malice, you cannot be criminally punished for the result. The idea is to protect innocent people from unfair punishment when they genuinely believed they were justified.
10. Mistaken Facts
Finally, this section is focused on mistakes about facts, not law. If you misunderstood the facts of a situation but acted thinking your action was legal, you are not at fault. This balance ensures that innocent people are not punished, but also that people cannot escape responsibility by pretending they didn’t know the law.
Difference between IPC Section 79 vs BNS Section 17
Section | Offense | Punishment | Bailable / Non-Bailable | Cognizable / Non-Cognizable | Trial By |
---|---|---|---|---|---|
BNS Section 17 | Acts done by a person who honestly believes his action is justified by law, or by mistake of fact believing himself justified. | No criminal liability if the actor honestly believed the act was lawful (mistake of fact); not a defence for mistake of law. | Depends on the underlying offence; section itself is exculpatory | Cognizability determined by the substantive offence (unchanged) | Ordinary criminal courts; Sessions Court for serious matters |
IPC Section 79 (Old) | Historical provision excusing acts done under a bona fide belief of legal justification (mistake of fact), in good faith. | Traditionally exculpatory — no criminal liability where the actor reasonably believed he was justified by law. | Dependent on the underlying IPC offence | No change to cognizability rules; depends on the substantive offence | Handled by regular criminal courts; civil remedies may still be available |
BNS Section 17 FAQs
What does BNS Section 17 say?
BNS Section 17 says you won’t be punished if you act based on what you believe is legal, even if you’re wrong about the facts. This applies if you are acting in good faith.
What is “mistake of fact” in this context?
A “mistake of fact” means you have incorrect information about the facts but believe that your actions are correct based on that mistaken information.
Do I need to prove I acted in good faith?
Yes, you must show that you genuinely believed your actions were legal, even if you were mistaken about the
Does this protection cover mistakes about the law?
No, this protection only applies to mistakes about the facts, not mistakes about the law itself.
What happens if I act on incorrect information but think I am justified?
As long as you act based on a genuine belief that you are following the law, you are protected from criminal charges, even if the information you relied on was incorrect.
Conclusion
BNS Section 17 provides important protection for people who act in good faith based on a factual mistake. It recognizes that sometimes individuals may honestly believe they are doing something legal, even though they are mistaken about the facts. By excusing such actions from criminal liability, the law ensures fairness and prevents punishment for genuine errors.
At the same time, this section clearly separates mistakes of fact from mistakes of law. If someone misunderstands the law itself, they cannot claim protection under Section 17. This balance strengthens trust in the legal system, ensuring that honest mistakes are not treated as crimes while still maintaining accountability for intentional or reckless actions.
By replacing IPC Section 79 under the Bharatiya Nyaya Sanhita, 2023, this provision modernizes the old law, aligning it with today’s need for justice, fairness, and clarity in criminal law.
Need Legal Support?
If you are dealing with court cases, marriage problems, or any other legal issue, our team at Marriage Solution – Lawyer Help is here for you. Simply fill out our quick online enquiry form, and we’ll connect you with the right legal expert to support your needs.
Finished with BNS Section 17? Continue exploring the next provisions of the Bharatiya Nyaya Sanhita (BNS), 2023. Each section includes explanations, examples, and plain-language breakdowns for easy understanding.
Chapter III – General Exceptions
- BNS Section 18 — Accident in doing a lawful act
https://marriagesolution.in/bns_section/bns-section-18/ - BNS Section 19 — Act likely to cause harm, but done without criminal intent, and to prevent other harm
https://marriagesolution.in/bns_section/bns-section-19/ - BNS Section 20 — Act of a child under seven years of age
https://marriagesolution.in/bns_section/bns-section-20/ - BNS Section 21 — Act of a child above seven and under twelve of immature understanding
https://marriagesolution.in/bns_section/bns-section-21/ - BNS Section 22 — Act of a person of mental illness
https://marriagesolution.in/bns_section/bns-section-22/
Full BNSS Section List:
https://marriagesolution.in/bnss_section-list
Full IPC Section List:
https://marriagesolution.in/ipc-section-list
Full Indian Law & Blogs:
https://marriagesolution.in/indian-law/