How to File a Writ of Habeas Corpus Under Article 226 for Illegal Detention in India
- Kaustav Chowdhury

- Jul 30
- 5 min read
The writ of habeas corpus, meaning "you shall have the body," is the most powerful constitutional remedy against unlawful detention in India. When a person is detained without legal authority, held beyond the authorized period of custody, or confined in violation of their fundamental rights, a habeas corpus petition compels the detaining authority to produce the detained person before the court and justify the legality of the detention. Under Article 226 of the Constitution of India, every High Court has the power to issue writs, including habeas corpus, for the enforcement of fundamental rights and other legal rights within its territorial jurisdiction. This guide explains the complete process of filing a habeas corpus petition before a High Court, including who can file, on what grounds, and the documents required.
Legal Framework: Article 226 and Article 32
The constitutional foundation for habeas corpus in India rests on two provisions. Article 32 empowers the Supreme Court to issue writs for the enforcement of fundamental rights under Part III of the Constitution. Article 226 confers a broader power on High Courts, allowing them to issue writs for fundamental rights and also for the enforcement of any other legal right. The key practical difference is jurisdiction: the Supreme Court has nationwide jurisdiction, while each High Court is limited to its territorial boundaries. In most cases, habeas corpus is filed before the High Court under Article 226, as the High Court with jurisdiction over the place of detention is the most accessible forum. Under the Bharatiya Nagarik Suraksha Sanhita (BNSS), 2023, which replaced the Code of Criminal Procedure on July 1, 2024, Section 58 requires that every arrested person be produced before a Magistrate within 24 hours of arrest, excluding travel time. Any detention beyond this period without a valid magistrate's order is illegal and amenable to habeas corpus.
Who Can File a Habeas Corpus Petition
A habeas corpus petition can be filed by virtually anyone on behalf of the detained person. The following persons may file: the detained person, if capable; a spouse, parent, sibling, or other relative; a friend or well-wisher with knowledge of the detention; a lawyer on behalf of the detained person or their family; or any public-spirited individual, in cases resembling a public interest litigation. This broad locus standi is intentional, because a person who is illegally detained may not have the physical ability or opportunity to approach the court themselves. In urgent situations, even a letter or telegram addressed to the Chief Justice of the High Court has been treated as a habeas corpus petition.
Grounds for Filing a Habeas Corpus Petition
A habeas corpus petition can be filed on several grounds: detention without any legal order, such as when police hold a person without registering an FIR or producing them before a Magistrate within 24 hours; detention beyond the authorized period of remand or custody; detention in violation of Article 22 safeguards, including the right to be informed of arrest grounds and the right to legal counsel; detention under a preventive detention order where grounds were not communicated to the detenu; wrongful confinement by a private individual; and custody disputes involving minors, where one parent unlawfully retains the child.
Step-by-Step Procedure for Filing
Step 1: Identify the correct High Court with territorial jurisdiction over the place of detention. Step 2: Engage an advocate enrolled with the relevant State Bar Council; engaging a lawyer is strongly recommended given the urgency involved. Step 3: Draft the petition as a Writ Petition (Criminal) under Article 226. It must contain the petitioner's details and relationship to the detained person, the detenu's details, the detaining authority's name and designation, a narrative of facts, the grounds of illegality, the specific relief sought (typically production and release of the detained person), and a verification clause with an affidavit. Step 4: File the petition at the High Court registry along with the required copies and the affidavit. Step 5: Most High Courts treat habeas corpus petitions on an urgent basis and may list them for hearing on the same day or next day. Vacation benches are also available for urgent filings.
Required Documents
The following documents should accompany a habeas corpus petition: the main writ petition under Article 226; an affidavit on oath by the petitioner; a copy of the FIR, if registered; the arrest memo or detention order, if available; medical reports documenting injuries or health concerns; the Vakalat-nama in favour of the advocate; an index of all annexures; identity proof of both the detained person and petitioner; and any prior correspondence with the detaining authority. If the petitioner does not have access to the arrest memo or detention order, this fact should be stated in the petition, and the court will direct the respondent to produce these documents. For a related criminal matter, consider consulting the procedure for bail applications as well.
Court Fees and Time Limits
Criminal writ petitions, including habeas corpus, are generally exempt from court fees in most High Courts, given the fundamental nature of personal liberty under Article 21. There is no statutory limitation period for habeas corpus, as illegal detention is a continuing wrong. However, the petition should be filed as early as possible, since unexplained delay may be viewed unfavourably by the court. In cases involving arrest and detention rights under BNSS, immediate action is critical to protect the detained person's well-being.
What Happens After Filing
The High Court typically issues notice to the detaining authority and directs production of the detained person. The respondent must file a counter-affidavit explaining the legal basis for detention and produce the detention order or arrest memo. If the court finds the detention illegal, it may order immediate release and, in appropriate cases, award compensation for violation of Article 21 rights. If the detention is found lawful, the petition is dismissed. The Supreme Court has also directed that bail orders must be communicated to jail authorities on the same day for immediate release, and a similar urgency applies to habeas corpus orders.
Key Takeaways
1. A habeas corpus petition under Article 226 is the primary constitutional remedy against illegal detention, filed before the High Court with jurisdiction over the place of detention.
2. Any person, not just the detenu, can file the petition, including relatives, friends, lawyers, or public-spirited individuals.
3. Under BNSS Section 58, failure to produce an arrested person before a Magistrate within 24 hours renders the detention illegal and grounds for habeas corpus.
4. Criminal writ petitions, including habeas corpus, are generally exempt from court fees in most High Courts.
5. There is no limitation period for habeas corpus, but prompt filing is essential given the ongoing nature of the illegality and the urgency of protecting personal liberty.
6. If the High Court finds the detention illegal, it may order immediate release and, in appropriate cases, award compensation for the violation of fundamental rights.

Comments