Section 17 of the Bharatiya Nyaya Sanhita, 2023, Act done by a person justified, or by mistake of fact believing himself justified, by law, takes the place of IPC Section 79.

Browse old and new laws

BNS 17 and the IPC

BNSIPCIPC heading
1779Act done by a person justified, or by mistake of fact believing himself justified, by law.
Looking for IPC Section 17 (“Government”)? See IPC Section 17 in BNS, which maps to BNS Section 2(12).

At a glance

Act
Bharatiya Nyaya Sanhita, 2023
Status
In force since 1 July 2024
Chapter
III: General exceptions
Formerly in the IPC
Section 79
Structure
Illustrations
Length
116 words
Selected judgments citing IPC counterpart
5 distinct judgments in the saved selection

Where BNS Section 17 came from

Section 17 of the Bharatiya Nyaya Sanhita, 2023, in force since 1 July 2024, takes its place from this provision of the Indian Penal Code, 1860:

  • IPC Section 79: Act done by a person justified, or by mistake of fact believing himself justified, by law

    The saved selection lists 5 Supreme Court judgments citing IPC Section 79 in two or more paragraphs, with up to five selected per section. This is not the collection total.

Searching older judgments? Use the old section number: judgments decided before 1 July 2024 cite the Indian Penal Code, 1860.

Research BNS Section 17 in Supreme Court precedents

Search how benches applied this section. Each authority opens at the paragraph it relies on. Five research answers are free.

Start free

What is new in BNS Section 17

Mapped-provision comparison: IPC Section 79 and BNS Section 17.

BNS Section 17 carries over IPC Section 79 unchanged, 116 words long.

The full word-by-word comparison, with the words around each change, is on the page for IPC Section 79.

Each comparison uses the mapped provisions. New provisions without an old counterpart appear in the correspondence table and the official text.

Supreme Court judgments citing it

Selected judgments from the 16 October 2026 snapshot, up to five per section. These lists are not total counts for Vakilat's current collection. Selection requires citations in at least two paragraphs and ranks by paragraph count, then newest first on a tie.

Supreme Court judgments in Vakilat's collection citing the counterpart provision this section replaced. Read each judgment against the current wording before relying on it.

  1. RAJKAPOOR S/O PRITHVIRAJ KAPOOR v. LAXMAN S/O KISHANLAL GAVAI

    14 December 1979 · 1980 AIR 605 · cites the section in 7 paragraphs

  2. Sushil Ansal v. State Through CBI

    5 March 2014 · cites the section in 6 paragraphs

  3. Satyavir Singh Rathi v. State thr. C.B.I.

    2 May 2011 · cites the section in 6 paragraphs

5 selected judgments cite IPC Section 79, which it replaced: see the full selection on its page.

Official text

BNS Section 17: 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. Illustration. A 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.

Bharatiya Nyaya Sanhita, 2023, page 11

Where it sits in the Indian Penal Code, 1860, opening words only:

IPC Section 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. …

Full text of IPC Section 79

Chapter and nearby sections

BNS Section 17 is in Chapter III (General exceptions) of the Bharatiya Nyaya Sanhita, 2023, which runs over Sections 14 to 44. In the IPC, Section 79 is in Chapter IV (General exceptions), which runs over Sections 76 to 106.

Nearby sections of the BNS

  • BNS Section 14, Act done by a person bound, or by mistake of fact believing himself bound, by law, in place of IPC Section 76
  • BNS Section 15, Act of Judge when acting judicially, in place of IPC Section 77
  • BNS Section 16, Act done pursuant to judgment or order of Court, in place of IPC Section 78
  • BNS Section 18, Accident in doing a lawful act, in place of IPC Section 80
  • BNS Section 19, Act likely to cause harm, but done without criminal intent, and to prevent other harm, in place of IPC Section 81
  • BNS Section 20, Act of a child under seven years of age, in place of IPC Section 82

Which code applies

In force since 1 July 2024: an offence committed on or after that date is charged under it. Matters already under way on that date stay with the old code; the old section's page quotes the saving provision, and IPC or BNS: which criminal law applies works through it.

Frequently asked questions

What was BNS Section 17 in the IPC?

Section 17 of the Bharatiya Nyaya Sanhita, 2023, Act done by a person justified, or by mistake of fact believing himself justified, by law, takes the place of IPC Section 79.

When did BNS Section 17 come into force?

On 1 July 2024, when the Bharatiya Nyaya Sanhita, 2023 replaced the Indian Penal Code, 1860. Matters already under way on that date stay with the old code.

Do judgments on IPC Section 79 help with BNS Section 17?

Judgments decided before 1 July 2024 cite the old section. The saved selection lists 5 Supreme Court judgments citing IPC Section 79 in two or more paragraphs, on its page. It includes up to five per section, not a total count of the current collection. Read them against the new text before relying on them.

Sources

Section numbers follow the correspondence table prepared by the Central Academy for Police Training, Bhopal, of the Bureau of Police Research and Development. Headings are taken from the Indian Penal Code, 1860 and the Bharatiya Nyaya Sanhita, 2023 as published. The text of each section is reproduced from those official copies: the Gazette of India for the 2023 Acts and India Code for the earlier ones, with page furniture and amendment footnotes left out. The judgments citing a section are found by Vakilat's index of the Supreme Court's judgments, and each links to the court's official copy. The official text governs: read the section itself before you rely on it.

Research BNS 17 in Supreme Court judgments

Ask Vakilat a question about BNS Section 17 in plain English. Each authority in the answer opens at the paragraph it relies on. Five research answers are free.

Start free