Habeas corpus — getting a court order to free someone in illegal custodyA petition for the writ of habeas corpus under Article 32 of the Constitution or Article 226 of the Constitution remains the fastest constitutional remedy when a person is held in custody — police, preventive-detention or private — without legal authority. The doctrine, after Sunil Batra, Kanu Sanyal, Sebastian Hongray, Bhim Singh and Nilabati Behera, is no longer about producing the body alone; it is about testing the legality of detention at any point along its arc. Produce the body — and answer for the holding
[ Everyday Law ]

Habeas corpus — getting a court order to free someone in illegal custody

A petition for the writ of habeas corpus under Article 32 of the Constitution or Article 226 of the Constitution remains the fastest constitutional remedy when a person is held in custody — police, preventive-detention or private — without legal authority. The doctrine, after Kanu Sanyal, Sunil Batra, Sebastian M Hongray, Bhim Singh and Nilabati Behera, is no longer about producing the body alone; it is about testing the legality of detention at any point along its arc.

The literal translation of habeas corpus ad subjiciendum — "you must have the body to submit to scrutiny" — is the smallest part of what the writ does in India in 2026. The constitutional grant in Article 32(2) and Article 226(1) authorises the Supreme Court and the High Courts to issue "directions or orders or writs… in the nature of habeas corpus" for the enforcement of fundamental rights and other legal rights. From this textual hook, three generations of judges have built a remedy that reaches the prisoner subjected to inhuman conditions (Sunil Batra v Delhi Administration, (1980) 3 SCC 488), the army-camp disappearance victim (Sebastian M Hongray v Union of India, (1984) 1 SCC 339), the political detenu held in unauthorised custody (Bhim Singh v State of J&K, (1985) 4 SCC 677), the woman in private confinement, the child held by one parent against a custody order, and — through compensatory habeas — the family of a man dead in police lock-up (Nilabati Behera v State of Orissa, (1993) 2 SCC 746). The writ is fast, the procedural threshold low, and the case-line generous on locus, on res judicata, and on the form in which the petition may reach the court.

The constitutional grant — Articles 32 and 226

Habeas corpus is one of five writs textually named in Article 32(2) of the Constitution, alongside mandamus, prohibition, certiorari and quo warranto. The Supreme Court is empowered to issue it for the enforcement of fundamental rights — primarily the Article 21 guarantee that no person shall be deprived of his life or personal liberty except according to procedure established by law, read with the Article 22 protections against arbitrary arrest and detention. Article 226(1) confers the same power on every High Court "for the enforcement of any of the rights conferred by Part III and for any other purpose" — wider on rights but limited by territory.

The textual choice of words "in the nature of" was deliberate. The Constitution-makers did not import the English prerogative writ wholesale; they authorised an Indian analogue. As the Supreme Court has explained in successive judgments, this licenses the courts to mould the writ to Indian conditions — to dispense with the older requirement of physical production where the legality of detention can be tested on affidavit, to entertain a letter as a petition, and to read into the writ a compensatory dimension where the body cannot be produced because the State has lost it.

A second textual feature matters in practice. Article 32 is itself a fundamental right (the Supreme Court called it the "heart and soul of the Constitution" in Romesh Thappar v State of Madras, AIR 1950 SC 124). A habeas corpus petition under Article 32 cannot be refused on the ground that the petitioner has an alternative remedy under Article 226 or under the BNSS. Under Article 226, the alternative-remedy bar is a discretionary self-restraint, not a jurisdictional bar, and in habeas matters the High Courts have consistently held that the discretion runs in favour of entertainment.

What counts as illegal custody

The writ tests not the rightness of detention but its legality. The High Court does not sit to second-guess the truth of the allegations underlying an arrest or the wisdom of a preventive-detention order; it asks whether the holding is authorised by law and whether the authorisation has been followed in form. Five categories of "illegal custody" recur in the case-line and frame nearly every habeas petition filed today.

First, arrest without compliance with statutory safeguards. Section 35 of the Bharatiya Nagarik Suraksha Sanhita, 2023 [Section 41 of the CrPC, 1973] enumerates the conditions under which a police officer may arrest without warrant; Section 47 BNSS [Section 50 CrPC] requires the arrested person to be informed of the grounds; Section 58 BNSS [Section 57 CrPC] mandates production before the nearest Magistrate within 24 hours of arrest, excluding journey time. The Supreme Court in Joginder Kumar v State of UP, (1994) 4 SCC 260, held that arrest cannot be made merely because it is lawful — there must be a "reasonable satisfaction" of necessity, and the arrested person has the right to inform a friend or relative. D K Basu v State of West Bengal, (1997) 1 SCC 416 supplied the eleven now-canonical guidelines on memo of arrest, intimation to next of kin, medical examination and the arrest diary. A custody that breaches the Section 58 BNSS production timeline, or the D K Basu safeguards, is liable to be tested by habeas.

Second, preventive detention without compliance with Article 22. Detentions under the National Security Act, 1980, the Conservation of Foreign Exchange and Prevention of Smuggling Activities Act, 1974 (COFEPOSA), state public-safety statutes and the Unlawful Activities (Prevention) Act, 1967, are tested for compliance with Article 22(4) and (5) — communication of grounds, opportunity of representation, reference to the Advisory Board within the constitutional window. Where a ground is vague, irrelevant, stale or non-existent, the order falls in entirety, because Article 22(5) requires that each ground stand on its own; the rule emerged early in Shibban Lal Saksena v State of UP, AIR 1954 SC 179, and has been reaffirmed regularly.

Third, disappearance and unaccounted custody. Where the State denies that the person is in its custody at all, but the petitioner shows credible material that he was last seen in the State's hands, the writ issues to compel disclosure. Sebastian M Hongray v Union of India, (1984) 1 SCC 339, in which two men were taken into army camps in Manipur and never produced, is the foundational case. The Supreme Court directed production, accepted that the Union had not produced the bodies because the men were dead in custody, and awarded exemplary damages to the families. The doctrine was extended in Saheli, A Women's Resources Centre v Commissioner of Police, (1990) 1 SCC 422 and other cases of custodial death.

Fourth, prison conditions and continuing custody. Sunil Batra v Delhi Administration, (1980) 3 SCC 488 (the "Sunil Batra II" decision) opened the writ to its widest reach. A letter from a convict alleging brutality against a fellow prisoner was treated as a habeas corpus petition. The Court held that the writ runs not only against the moment of detention but against its continuing conditions — solitary confinement without due process, bar fetters, denial of medical care, denial of contact with the outside world. The detention may be lawful in origin but rendered illegal in execution; Sunil Batra is the doctrinal door through which the prisons-rights jurisprudence walked.

Fifth, private custody. The writ runs against private persons — a husband detaining his wife, a parent detaining a child against the other's custody order, an employer detaining a workman, a religious institution detaining a novice. The locus point is well-settled: any person may file the petition on behalf of the detenu (the Admin Law treatise, on Article 226 writ jurisdiction, expressly notes that "any person can file the writ to secure the release of a person in illegal detention, public or private"). The standard of review in private-custody cases is the same — is the holding authorised by law, or is it being maintained against the detenu's wish without authority.

ADM Jabalpur and what came after

ADM Jabalpur v Shivkant Shukla, (1976) 2 SCC 521, is the writ's darkest hour and the case every habeas opinion in India still circles. The Supreme Court, by 4-1 majority, held that the Presidential proclamation of Emergency under Article 352 and the Article 359 suspension of Article 21 stripped the High Courts of jurisdiction to entertain a habeas corpus petition challenging an illegal detention during the Emergency. The dissent of Justice H R Khanna — that Article 21 was not the sole repository of the right to life and liberty, and that the writ of habeas corpus had a pre-constitutional existence the State could not suspend — cost him the Chief Justiceship. The majority position was constitutionally overruled by the Forty-fourth Constitutional Amendment, 1978, which inserted into Article 359(1) the proviso that the right to move any court for the enforcement of Articles 20 and 21 cannot be suspended even during a proclamation of Emergency.

The doctrinal apology came late. In K S Puttaswamy v Union of India, (2017) 10 SCC 1, a nine-judge Bench unanimously held that ADM Jabalpur had been wrongly decided — "the view taken by Justice Khanna must be accepted, and accepted in terms" — and that fundamental rights had not been conferred by the Constitution but recognised by it. The shadow on the writ is now formal history. The takeaway for the contemporary reader is the inverse — even at its lowest, the writ's pull on Indian constitutional imagination was strong enough to make ADM Jabalpur a permanent embarrassment, and the post-Emergency cases proceeded as if Khanna's dissent had been the holding.

Kanu Sanyal and the loosening of physical production

Until Kanu Sanyal v District Magistrate Darjeeling, (1974) 4 SCC 141, the orthodox understanding was that the writ of habeas corpus required the physical production of the detenu before the court. The Constitution Bench reconsidered. Kanu Sanyal held that physical production is not always essential — where the legality of detention can be tested on the affidavits filed by the State and the petitioner, the writ can be disposed of without bringing the detenu to court. The Court reasoned that the writ is a remedy for testing legality, not a ritual of production; if the legality question can be answered without the body, the production order is dispensable.

Kanu Sanyal remains the procedural floor. In practice, the High Courts use it as a graduated tool. Where the State's affidavit candidly discloses the date, place and statutory authority of detention and the petitioner's pleadings raise a pure question of law, the petition can be disposed on paper. Where there is a credible factual dispute — the detenu is alleged to have been moved, hidden or held under false names — the production order issues, and the writ recovers its older vigour.

Locus, res judicata, and the letter-as-petition

Three procedural features of the writ make it accessible in a way few other remedies are.

Locus. The petition may be filed by the detenu himself or by any person on his behalf — a relative, a friend, a lawyer, a journalist, a fellow prisoner, an activist. The Court has not required the petitioner to demonstrate a personal stake, on the principle that detention is a matter on which "every member of the public has an interest." The Admin Law treatise records this position plainly — "any person can file the writ" — and the case-line is uniform.

No res judicata. The general rule is that a question once decided by the High Court under Article 226 cannot be re-agitated by petition under Article 32, and vice versa. Habeas corpus is the standing exception. In Ghulam Sarwar v Union of India, AIR 1967 SC 1335, the Supreme Court entertained a habeas petition that had earlier been dismissed by the High Court. In Sunil Dutt v Union of India, AIR 1982 SC 53 — a COFEPOSA detention — the Court reaffirmed that a habeas petition dismissed in limine does not operate as res judicata on a subsequent petition. The reasoning is that liberty is a continuing right; the legality of detention has to be tested afresh each time it is raised, and a wrong decision cannot be allowed to perpetuate a wrongful detention.

Letter-as-petition. Sunil Batra II (1980) treated a hand-written letter from a convict to a sitting judge as a writ petition. The doctrine has matured into "epistolary jurisdiction" — habeas corpus, like other public-interest writs, may be initiated by a postcard, a letter, a fax, or in contemporary practice an email to the Registry. The petitioner is not held to formal drafting standards; the Court reads the substance and, where the substance discloses an arguable case of illegal custody, issues notice.

Compensatory habeas — Sebastian Hongray, Bhim Singh, Nilabati Behera, Rudul Sah

The writ's reach has expanded from securing release to making the State pay for unlawful holdings. The doctrinal sequence is well-known.

Rudul Sah v State of Bihar, (1983) 4 SCC 141, is the first decision in which the Supreme Court awarded monetary compensation in a habeas petition. The petitioner had been held in jail for fourteen years after acquittal because the State had simply forgotten him. The Court awarded Rs 35,000 as compensation, holding that Article 32 carried the power to do "complete justice" in fundamental-rights matters and the conventional bar against tortious remedies in writ proceedings did not extend to a constitutional violation by the State itself.

Sebastian M Hongray v Union of India, (1984) 1 SCC 339, extended Rudul Sah to disappearance cases. When the Union failed to produce two men taken into army camps in Manipur, the Court accepted that they had been killed in custody and awarded exemplary damages of Rs 1 lakh to each family — an extraordinary figure at the time, deliberately calibrated to mark the State's failure to account for life taken in custody.

Bhim Singh v State of J&K, (1985) 4 SCC 677, is the case for illegal arrest without disappearance. A sitting MLA had been picked up by the J&K police and held in unauthorised custody for several days, preventing him from attending a Legislative Assembly session at which he had the right to vote. The Court awarded Rs 50,000 in compensation and laid down that "deliberate" violation of personal liberty by State actors invites exemplary damages, even where the detenu is eventually released.

Nilabati Behera v State of Orissa, (1993) 2 SCC 746, is the case for custodial death. The mother of a 22-year-old detenu who died in police custody filed a writ. The Court held that the State's defence of sovereign immunity did not run to violations of fundamental rights by the State itself, and awarded compensation in the writ jurisdiction without remitting the family to a separate civil suit. The judgment is the doctrinal foundation for every subsequent custodial-death compensation award under Article 32 and Article 226.

The compensatory limb is now a permanent feature of habeas corpus. A petition for the writ that begins as a production order can, over the course of the proceedings, mature into an award of damages where the State's holding is found illegal and the detenu has suffered measurable harm — death, injury, lost wages, lost office. The Supreme Court has been careful to distinguish this constitutional compensation from tort damages; the figure is calibrated to the violation of the right, not to the tortious quantum, and a successful habeas petitioner is not barred from pursuing a separate civil action.

Where the petition is filed and what it must contain

A habeas petition is filed in the High Court of the State where the custody is being maintained, or in the High Court of the State where the order of detention was passed, or in the Supreme Court under Article 32. The petitioner has the choice; in preventive-detention cases the High Court is usually preferred because of the speed of listing and the availability of fact-finding through affidavits.

The petition is filed under the criminal-side or constitutional-side rules of the relevant High Court — practice varies. Most High Courts list habeas petitions on priority and the Registry is empowered to mention the petition before a Bench out of turn. The respondents are the State, the police officer or jail authority in actual custody, and where preventive detention is challenged, the detaining authority and the Advisory Board. In a private-custody case the respondent is the private person; the State is impleaded as a formal party through the Public Prosecutor.

The pleadings must disclose — (i) the identity of the detenu, (ii) the date, place and circumstances of the taking into custody, (iii) the absence of legal authority for the detention or the breach of statutory safeguards, and (iv) the relief sought. A supporting affidavit is filed by the petitioner; in epistolary cases the Court takes the letter on file and directs the petitioner to file a formal affidavit later. The State's counter-affidavit must disclose the authority for the detention, the documents (arrest memo, grounds of detention, Magistrate's remand order, Advisory Board opinion) supporting the holding, and the present status of the detenu.

An interim order in a habeas petition will often be a production order — directing the respondent to produce the detenu on a named date — but the Court has discretion to dispose the petition on affidavits under Kanu Sanyal. Where the case is one of disappearance, the Court routinely directs the State to file a status report and may, in egregious cases, direct a court-monitored inquiry through the CBI or a sitting judge of the High Court.

Habeas, statutory remedies and the BNSS overlay

The constitutional writ does not displace the criminal-procedure remedies. Section 482 BNSS [Section 482 CrPC] (inherent powers — though now Section 528 BNSS for the High Court), Section 35 BNSS [Section 41 CrPC] (conditions of arrest), Section 58 BNSS [Section 57 CrPC] (production within 24 hours), and the remand jurisdiction of the Magistrate under Section 187 BNSS [Section 167 CrPC] are the first-line statutory protections. A person produced before a Magistrate within 24 hours can challenge the legality of arrest before the Magistrate himself; the Magistrate has the power under Section 187 BNSS to refuse remand where the arrest is in breach of Section 35.

The writ is therefore typically invoked where (a) the statutory protections have been bypassed (production not made within 24 hours, grounds of arrest not communicated, person held in unauthorised custody after the 24-hour window has expired), (b) the detenu is held under preventive-detention legislation against which the BNSS does not run, (c) the detenu is held privately and the statutory criminal-process route is too slow, or (d) the holding is alleged to be in continuing breach of fundamental rights (prison conditions, denial of medical care, disappearance).

One question deserves a candid acknowledgment. The Joginder Kumar-D K Basu safeguards have, since 2010 amendments to the CrPC and the BNSS's parallel framing, been substantially integrated into statute — Section 35(1)(b) BNSS picks up the Joginder Kumar "reasons recorded in writing" requirement; Section 38 BNSS embeds the right of the arrested person to have a friend, relative or nominated person informed. Whether the habeas remedy retains its earlier breadth where the BNSS itself contains the safeguards, or whether a court may direct the detenu to the statutory remedy, is being worked out at the High Court level. Recent High Court orders show divergence on whether breaches of Section 58 BNSS are best routed through a Section 528 BNSS petition for quashing-cum-release or a habeas petition; the practitioner-side answer is to file the writ and let the court choose its hat.

What the writ does not do

Three limits are worth flagging.

First, the writ does not test the merits of the case against the detenu. If the police have arrested a person on a credible cognizable allegation, with compliance of Section 35 and Section 58 BNSS, the habeas court will not enter the question of whether the allegations are true. That is for the trial. The writ refuses where the detention is by Magistrate's remand order under Section 187 BNSS — the order, even if subsequently liable to be set aside on appeal, is a valid legal authority for the custody.

Second, the writ does not run against a judicial order of conviction or sentence. A convict held under a sentencing order from a competent criminal court cannot challenge his custody by habeas; the remedy is appeal, revision or constitutional challenge to the sentencing law. Sunil Batra's contribution is narrower than is sometimes suggested — it allowed the writ to test the conditions of lawful custody, not the lawful custody itself.

Third, the writ is not a substitute for bail. A person held on a Magistrate's remand under Section 187 BNSS in a cognizable offence has the statutory route of bail under Section 480 BNSS [Section 437 CrPC] or Section 483 BNSS [Section 439 CrPC]. The High Courts have been firm that the writ will not be used to bypass the bail jurisdiction — though where bail has been denied in circumstances that suggest the remand is itself an abuse, the writ may still issue.

Where the doctrine sits today

The post-2017 (Puttaswamy) habeas jurisprudence is settled on five axes.

One — Article 21 is the substantive anchor of the writ; Article 22 supplies the procedural standards for arrest and preventive detention; Articles 32 and 226 supply the jurisdictional vehicle. The four provisions are read together.

Two — physical production of the body is dispensable where the affidavits answer the legality question (Kanu Sanyal); the production order remains the default in disappearance and disputed-custody cases.

Three — locus is generous, res judicata does not apply, and the writ may be initiated by letter, email or telegram in addition to a formal petition.

Four — the writ carries a compensatory dimension under Rudul Sah-Sebastian Hongray-Bhim Singh-Nilabati Behera, and the State's defence of sovereign immunity does not run to constitutional violations by the State itself.

Five — the BNSS-integrated safeguards (D K Basu, Joginder Kumar) now sit alongside the writ rather than displacing it. A holding in breach of Section 35 or Section 58 BNSS is the standard pleading basis for habeas; a holding under a Magistrate's remand order is not.

Two open questions are worth flagging. The first is the standing tension between the writ's breadth and the proliferation of statutory remedies — whether the High Courts should continue to entertain habeas where a BNSS or special-statute remedy exists, or whether the doctrine of alternative remedy should harden. The High Courts diverge; the Supreme Court has not sat on the question recently. The second is the contours of compensatory habeas in cases short of death or grievous injury — the figures awarded under Bhim Singh's "deliberate violation" head have remained low (Rs 50,000 to Rs 5 lakh in most cases) and the inflation-adjusted reality is that the deterrent function of the award is weak. A larger-Bench reconsideration of compensation quantum is overdue.

The writ's older promise — that no person shall be held in custody save by authority of law, and that the courts will inquire into the legality of any holding swiftly and on minimal procedural ceremony — has not been displaced by the elaboration of statutory safeguards. If anything, the BNSS's parallel codification has confirmed that the writ remains the constitutional floor, available when the statutory route is too slow, too narrow, or too compromised by the State actor that should be running it. A habeas petition filed today on the model of Sunil Batra's letter, alleging illegal custody and supported by minimal documentary material, will be listed within days in any High Court. That speed is the writ's enduring contribution.