When an act, which would otherwise be a certain offence, is not that offence, by reason of the youth, the want of maturity of understanding, the mental illness or the intoxication of the person doing that act, or by reason of any misconception on the part of that person, every person has the same right of private defence against that act which he would have if the act were that offence.
Illustrations.
(a) Z, under the influence of mental illness, attempts to kill A; Z is guilty of no offence. But A has the same right of private defence which he would have if Z were sane.
(b) A enters by night a house which he is legally entitled to enter. Z, in good faith, taking A for a house-breaker, attacks A. Here Z, by attacking A under this misconception, commits no offence. But A has the same right of private defence against Z, which he would have if Z were not acting under that misconception.
Law reference / Bharatiya Nyaya Sanhita, 2023 / Chapter III
Section 36. Right of private defence against the act of a person with mental illness, etc
GENERAL EXCEPTIONS
Please note: this text is the Bharatiya Nyaya Sanhita Bill, 2023 (Bill No. 121 of 2023, as introduced in the Lok Sabha). Parliament later passed a revised version as Act No. 45 of 2023, which is the law in force from 1 July 2024. Many section numbers differ (for example, murder is clause 101 here but section 103 in the Act), so use the IPC ↔ BNS table for the numbers of the Act and check the official text on India Code before quoting a section.