सं Samvidhan

Indian Penal Code, 1860

Section 79

repealed

Act done by a person justified, or by mistake of fact believing himself, justified, by law

Why this exists

This provision is one of the 'general exceptions' in the IPC drafted by the Law Commission under Macaulay in the mid-19th century. Criminal liability generally requires a guilty mind (mens rea). The drafters wanted to protect people who acted honestly under a factual misunderstanding while carrying out what they believed was a lawful duty or right — for example, a soldier or police officer acting under orders they reasonably believed were valid. At the same time, they deliberately excluded ignorance of law as an excuse, reflecting the long-standing legal principle that everyone is presumed to know the law.

How courts read it

Indian courts have consistently distinguished 'mistake of fact' (which can excuse conduct) from 'mistake of law' (which cannot), following the classic illustration used in commentaries: a person who kills someone genuinely and reasonably mistaking them for a wild animal or an attacker is protected, but a person who says 'I did not know this act was illegal' gets no protection. Courts have emphasized that the mistaken belief must be held in 'good faith' — meaning with due care and attention, not through carelessness or recklessness — and that the person must show they were actually trying to act lawfully, not merely claiming ignorance after the fact.

Common misconceptions
  • Myth: Not knowing a law existed can excuse breaking it under Section 79.
    Fact: Section 79 explicitly excludes mistake of law — only genuine, good-faith mistakes about facts can excuse conduct.
  • Myth: Any mistaken belief, however careless, is protected.
    Fact: Courts require the mistaken belief to be held in 'good faith', meaning with reasonable care and attention, not through negligence or recklessness.
  • Myth: This section lets private citizens do whatever they think is justified.
    Fact: The belief must be that one is justified 'by law' specifically — a vague personal sense of moral justification is not enough.