LawDadi legal and tax information
Indian criminal law | Updated 30 October 2026

IPC Section 345: Wrongful Confinement After a Liberation Writ - BNS Section 127(5)

Section 345 of the Indian Penal Code, 1860 dealt with keeping a person wrongfully confined despite knowing that a writ for that person's liberation had been duly issued. The corresponding provision for offences governed by the Bharatiya Nyaya Sanhita, 2023 is Section 127(5).

Current law: The Bharatiya Nyaya Sanhita came into force on 1 July 2024. The IPC remains relevant to offences committed before the change, subject to applicable repeal and saving provisions. The date of the alleged conduct matters.

What did IPC Section 345 provide?

The original provision punished a person who continued wrongful confinement with knowledge that a duly issued writ required the confined person's liberation. The punishment was imprisonment of either description for up to two years, in addition to any imprisonment applicable under another section of the same chapter.

Corresponding current provision: BNS Section 127(5)

Section 127(5) of the Bharatiya Nyaya Sanhita, 2023 continues to penalise keeping a person wrongfully confined with knowledge that a writ for the person's liberation has been duly issued. It prescribes imprisonment of either description for up to two years, in addition to imprisonment for other applicable offences in the chapter, and also a fine.

The express liability to a fine is an important difference from the wording of the former IPC Section 345.

Meaning and essential ingredients

Wrongful confinement: Under BNS Section 127(1), a person is wrongfully confined when wrongful restraint prevents that person from proceeding beyond specified limits. The earlier IPC definition appeared in Section 340.

Liberation writ: A writ issued by a competent court directing release from unlawful confinement. A writ of habeas corpus is a familiar example of judicial protection against unlawful detention.

For Section 127(5), the prosecution must establish wrongful confinement, a duly issued writ for the person's liberation, the accused's knowledge of that writ, and continued confinement despite that knowledge. The facts and evidence determine whether the offence is made out.

Punishment and classification

IssueIPC Section 345BNS Section 127(5)
ImprisonmentUp to 2 years, additional to applicable imprisonment under another section of the chapterUp to 2 years, additional to applicable imprisonment under another section of the chapter
FineNo express fine in Section 345Fine also prescribed
Procedural classification under current BNSS First ScheduleHistorical IPC procedural rules must be assessed for older casesCognizable; bailable; triable by a Magistrate of the first class

Cognizable means police may investigate and arrest without a warrant subject to law; bailable means bail is available as a matter of right upon compliance with the applicable conditions. Classification is drawn from the First Schedule to the Bharatiya Nagarik Suraksha Sanhita, 2023.

Illustrative example

A person unlawfully confines another individual. A competent court issues a writ for that individual's release. If the person responsible knows the writ has been duly issued but nevertheless continues the wrongful confinement, the additional offence under BNS Section 127(5) may arise.

Official legislation and further reading

Consult the Ministry of Home Affairs NCRB BNS section reference, the official BNS text hosted by BPR&D, and the official BNSS text including its First Schedule. The India Code portal provides access to central legislation.

Frequently asked questions

What is the new BNS section for IPC 345?

The corresponding provision is BNS Section 127(5).

Is BNS Section 127(5) bailable?

Yes. The BNSS First Schedule classifies this offence as cognizable and bailable, triable by a Magistrate of the first class.

Does the new law apply to older offences?

Offences committed before 1 July 2024 require examination under the applicable IPC provisions and the relevant saving and transitional rules. The new law should not automatically be applied retrospectively.

This article is for general legal information. The statutory text and facts of a particular case should be checked before taking legal action.