Section 79 IPC: Act done by a person justified, or by mistake of fact believing himself justified, by law
Indian Penal Code, 1860
Section 79 IPC at a Glance
Section 79 IPC deals with act done by a person justified, or by mistake of fact believing himself justified, by law. From 1 July 2024 it is replaced by Section 17 BNS.
None. Section 79 IPC creates no offence.
Section 79 IPC Bare Act Text
79. Act done by a person justified, or by mistake of fact believing himself justified, by law
Nothing is an offence which is done by any person who is justified by law, or who by reason of a mistake of fact and not by reason of a mistake of law in good faith, believes himself to be justified by law, in doing it.
IllustrationA sees Z commit what appears to A to be a murder. A, in the exercise, to the best of his judgment exerted in good faith, of the power which the law gives to all persons of apprehending murderers in the fact, seizes Z, in order to bring Z before the proper authorities. A has committed no offence, though it may turn out that Z was acting in self-defence.
Source: Section 79, Indian Penal Code, 1860
Section 79 IPC in Simple Words
Section 79 of the Indian Penal Code (IPC) protects a person who is justified by law, or who by a mistake of fact in good faith believes himself justified by law. Nothing is an offence which such a person does. A mistake of law does not bring a person within the section.
Ingredients of Section 79 IPC
- The act is done by a person who is justified by law in doing it, or who believes himself to be justified by law in doing it
- The belief arises from a mistake of fact and not from a mistake of law
- The belief is held in good faith
Punishment Under Section 79 IPC
None. Section 79 IPC creates no offence.
None.
Section 79 IPC is a General Exception. It has no entry in the First Schedule to the CrPC.
Example of Section 79 IPC
When Section 79 IPC Does Not Apply
- Section 79 IPC does not apply when the person acts under a mistake of law rather than a mistake of fact.
- Section 79 IPC does not apply when the person acts without due care and attention and therefore does not believe in good faith that the law justifies the act.
- Section 79 IPC does not apply when the act would still be unlawful even if the facts were exactly as the person supposed them to be.
Section 79 IPC in the BNS
Section 79 IPC is now covered under Section 17 BNS.
Section 17 BNS keeps the exception in the same words.
View detailed comparison (IPC 79 vs BNS 17) โFAQs on Section 79 IPC
What does Section 79 IPC say?โผ
That nothing is an offence which is done by a person who is justified by law, or who by a mistake of fact in good faith believes himself justified by law.
Does a mistake of law protect a person under Section 79 IPC?โผ
No. The section speaks of a mistake of fact and not of a mistake of law.
What does good faith mean under Section 79 IPC?โผ
Section 52 IPC says nothing is done in good faith which is done without due care and attention.
Is Section 79 IPC an offence?โผ
No. It is a General Exception in Chapter IV, so an act within it is not an offence.
What is the BNS equivalent of Section 79 IPC?โผ
Section 17 BNS, in the same words.
Have questions about Section 79 IPC?
Ask NyayGuru for a plain language explanation, punishment details, or how it applies to your situation.
Ask NyayGuru โDisclaimer: This is for informational purposes only. Always consult a qualified advocate for legal advice.
Sources: Bare Act Text, Indian Penal Code, 1860 ยท Last updated: 16 Oct 2026 ยท