BNS § 22
India's insanity defence provision in the Bharatiya Nyaya Sanhita 2023, replacing IPC § 84: an act is not an offence if done by a person who, at the time of doing it, by reason of mental illness, was incapable of knowing its nature or that it was wrong or contrary to law.