Habeas Corpus Petition: Grounds and Procedure in India

Habeas corpus is the oldest and most direct of the constitutional remedies. Its Latin name — “you shall have the body” — describes what the writ does: it commands the person holding another in custody to produce that person before the Court and to justify the detention in law. If no lawful authority is shown, the detenu is released. Its purpose is narrow and its operation is fast. In a Habeas Corpus Petition, the Court does not decide who is right in an underlying dispute; it examines whether a person’s present detention is lawful. That single focus is what gives the remedy its force.
The constitutional basis
Two provisions supply the jurisdiction. Article 32 of the Constitution permits a person to move the Supreme Court for the enforcement of the fundamental rights conferred by Part III, and the right to move the Court under that Article is itself a fundamental right. Article 226 permits a High Court to issue directions, orders or writs, including writs in the nature of habeas corpus, for the enforcement of fundamental rights and for any other purpose.
The substantive standards the writ enforces are found in Articles 21 and 22. Article 21 guarantees that no person shall be deprived of life or personal liberty except according to procedure established by law. Article 22 lays down specific safeguards on arrest and detention: the right to be informed, as soon as may be, of the grounds of arrest; the right to consult and to be defended by a legal practitioner of one’s choice; and production before the nearest Magistrate within twenty-four hours of arrest, excluding the time necessary for the journey from the place of arrest to the Magistrate’s court. Article 22 also contains separate provisions governing preventive detention.
The statutory law reinforces this. Section 58 of the Bharatiya Nagarik Suraksha Sanhita, 2023 provides that a person arrested shall not be detained beyond twenty-four hours without the authority of a Magistrate, exclusive of journey time — the statutory embodiment of the constitutional mandate.
Grounds on which the writ is sought
Habeas corpus is invoked in a limited but recurring set of situations.
Detention without lawful authority. Custody that has no legal foundation at all — a person held by the police without arrest being effected in accordance with law, or held after the authority to detain has lapsed.
Non-compliance with mandatory safeguards. Failure to inform the detenu of the grounds of arrest, or failure to produce the person before a Magistrate within the constitutional period, may render the continued detention unlawful.
Preventive detention orders. Detention under a preventive detention law is a frequent subject of habeas corpus, where challenges typically concern the grounds of detention, delay in supplying them, delay in considering a representation, non-application of mind by the detaining authority, or reliance on stale or irrelevant material.
Private and unlawful confinement. The writ operates against private persons as well as the State. It is regularly invoked where a person is alleged to be confined by relatives or others without lawful authority.
Custody of a person alleged to be missing or wrongfully held. Petitions seeking production of a “corpus” — the person whose custody is in question — are common, including in matrimonial and family contexts.
The limits of the remedy
Habeas corpus tests the legality of detention as it stands when the Court considers the matter. Where a person is in custody under a valid order of a competent court, the writ is ordinarily not the correct remedy; the appropriate course lies in bail, appeal or revision under the Bharatiya Nagarik Suraksha Sanhita, 2023.
The writ also does not convert into a general inquiry. Where the person alleged to be detained is produced and, on being heard by the Court, is found to be an adult exercising free choice, the petition ordinarily ends there — the Court is concerned with the legality of restraint, not with whether the petitioner approves of the corpus’s decisions. The Gujarat High Court applied that principle in Special Criminal Application (Habeas Corpus) No. 11832 of 2023, decided in 2023, where a Division Bench held that persons whose custody was in question could not be compelled to undergo medical testing to establish their mental capacity on vague allegations raised in a habeas corpus petition.
An alternative statutory route
Where the confinement is by a private person and amounts to an offence, a remedy exists outside the writ jurisdiction. Section 100 of the Bharatiya Nagarik Suraksha Sanhita, 2023 empowers a District Magistrate, Sub-divisional Magistrate or Magistrate of the first class who has reason to believe that a person is confined in circumstances amounting to an offence to issue a search warrant. The person to whom the warrant is directed may search for the person confined, and if that person is found, he or she must immediately be taken before a Magistrate, who may make such order as the circumstances warrant.
This route can be faster and less formal than moving the High Court, and it is worth considering before a writ petition is drafted.
Who may file
Standing is deliberately relaxed. The person detained is frequently unable to approach the Court, so a relative, friend or, in an appropriate case, a person otherwise connected with the detenu may petition on their behalf. The petitioner must, however, disclose the basis of knowledge and the relationship to the detained person; a petition filed by a stranger with no explanation of how the facts are known invites scrutiny.
Habeas corpus petition procedure step by step
Drafting. The petition sets out the identity of the person detained, the place and circumstances of the detention, the authority or person responsible, the date from which the detention has continued, and the legal basis on which it is said to be unlawful. The relief sought is the production of the corpus and an order of release. As with any writ petition, the pleadings must be verified on affidavit and must be complete and candid.
Where it is filed. A habeas corpus petition may be presented to the Supreme Court under Article 32 or to the High Court within whose jurisdiction the detention or the cause of action arises, under Article 226. In practice, most petitions go first to the High Court.
Nomenclature in Gujarat. In the Gujarat High Court, a habeas corpus petition is instituted on the criminal side as a Special Criminal Application (Habeas Corpus) — reflected in the Court’s own cause titles, such as Special Criminal Application (Habeas Corpus) No. 471 of 2026, decided on 11 February 2026. Habeas corpus matters and detention matters are assigned to Division Benches under the Court’s allocation of judicial business.
Listing and urgency. Habeas corpus petitions are treated as urgent, and courts routinely take them up promptly given the liberty interest at stake.
The return. On notice, the detaining authority or the respondent files a return — an affidavit justifying the detention and producing the material on which it rests. This is the pivotal document: the burden of establishing lawful authority for the detention falls on the person detaining.
Production and hearing. The Court may direct production of the corpus. Where the person is produced, the Court frequently interacts with them directly to ascertain whether the restraint is real and whether any wish expressed is voluntary.
Outcome. If the detention is found unlawful, the Court orders release. If lawful, the petition is dismissed. In appropriate cases, courts have granted consequential directions, including compensation, where a violation of Article 21 is established.
Practical points
Habeas corpus rewards precision and speed. Dates matter — the exact time of arrest, the time of production before the Magistrate, the date of service of the grounds of detention, the date of any representation and of its disposal. In preventive detention matters especially, unexplained delay at any of these stages is often the decisive point.
Equally, the correctness of the forum matters. A person aggrieved by a judicial order remanding an accused to custody is asking the wrong court the wrong question in a habeas corpus petition; the remedy lies in the criminal courts. The writ is powerful precisely because it is confined to the single question of lawful authority to detain.
Frequently Asked Questions
What is a habeas corpus petition?
A habeas corpus petition asks the Court to examine whether a person’s detention is lawful and, where the detention is unlawful, order their release.
Who can file a habeas corpus petition?
The detained person can file, but a relative, friend or another appropriate person may also approach the Court when the detenu cannot do so.
Where can a habeas corpus petition be filed?
It can be filed before the Supreme Court under Article 32 or before the appropriate High Court under Article 226. In practice, most petitions are first filed before the High Court.
Can habeas corpus be filed against a private person?
Yes. The remedy can apply where a person is unlawfully confined by a private individual, including a relative or another person.
How quickly is a habeas corpus petition heard?
Habeas corpus matters are treated as urgent because they directly concern personal liberty, and courts generally seek to deal with them promptly.
What happens if the detention is found unlawful?
If the Court finds that the detention has no lawful basis, it can order the person’s release. In appropriate cases, consequential relief such as compensation may also be granted.
Legal Information Disclaimer
This article is published for general legal information and educational purposes only. It reflects the position of Indian law as researched up to 10 August 2026 and may not account for subsequent amendments, notifications, rule changes or judicial developments. It is not legal advice, does not take into account any individual’s particular facts or circumstances, and no advocate-client relationship arises from reading it. Outcomes in litigation depend on the specific facts of each case and on procedural requirements in force at the relevant time. Readers dealing with an actual dispute should obtain independent professional advice from a qualified advocate of their own choosing before acting on any information contained here.
Sources / Authorities
- Constitution of India, Articles 21, 22, 32 and 226 — India Code, https://www.indiacode.nic.in
- Bharatiya Nagarik Suraksha Sanhita, 2023, Section 58 (person arrested not to be detained more than twenty-four hours) and Section 100 (search for persons wrongfully confined) — text of the Sanhita, https://prsindia.org/files/bills_acts/bills_parliament/2023/Bharatiya_Nagarik_Suraksha_Sanhita,_2023.pdf
- High Court of Gujarat, Special Criminal Application (Habeas Corpus) No. 11832 of 2023 (Division Bench; A.S. Supehia and Gita Gopi, JJ.) — limits on directing medical examination of the corpus in habeas corpus proceedings
- High Court of Gujarat, Special Criminal Application (Habeas Corpus) No. 471 of 2026, judgment dated 11 February 2026 (Division Bench; N.S. Sanjay Gowda and D.M. Vyas, JJ.) — nomenclature and Bench composition
- High Court of Gujarat, List of Sitting (allocation of judicial business; habeas corpus and detention matters assigned to Division Benches), https://gujarathighcourt.nic.in
Whatsapp
