Call or WhatsApp +91 96259 61599 advocates@legals365.com Offices in Dwarka, New Delhi and Vaishali, Ghaziabad
B.K. Singh & AssociatesAdvocates and legal consultants, Delhi NCR

Habeas Corpus: Petition Against Illegal Detention

A habeas corpus petition asks a High Court or the Supreme Court to order whoever is holding a person to produce them, or their papers, and justify the detention. If the authority cannot show a lawful basis as on the date of the hearing, the court orders release. It is among the quickest remedies in Indian law, and in Delhi it is heard by a Division Bench of the High Court, often within a day or two of filing.

By Advocate B.K. SinghUpdated About 22 minutes to readTopic: Supreme Court, High Court and Rights

In short. File a writ of habeas corpus under Article 226 in the High Court where the detention or its cause arises (for Delhi, the Delhi High Court), or under Article 32 in the Supreme Court. Any relative or friend can file. The court issues notice, asks the police or authority to produce the person or justify the custody, and orders release if the detention has no legal basis.

This post is about one situation: someone is being held and you believe the holding is unlawful. It covers police custody without arrest, detention beyond 24 hours, preventive detention orders, adults kept away by their own families, and the narrower use of habeas corpus in child custody disputes. If your problem is a government order or decision rather than a person in custody, our post on filing a writ petition in the Delhi High Court is the better starting point.

Habeas corpus does not decide guilt or innocence. It answers a narrower question: is there a law, and an order made under that law, that permits this person to be kept where they are today? If the answer is yes, the remedy usually lies elsewhere, such as a bail application. If the answer is no, the court can order release that day. Knowing which side of that line your case falls on saves time, money and a dismissed petition.

Remedy
Writ under Article 226 (High Court) or Article 32 (Supreme Court)
Delhi forum
Division Bench of the Delhi High Court hearing criminal writs
Who can file
The detainee, a relative, a friend or any person acting for them
Time limit
None fixed; file as soon as the detention is known
Key test
Is the detention lawful on the date the court examines it
Possible orders
Production, status report, release, protection, compensation

What is a habeas corpus petition, and when does it work?

A habeas corpus petition is a request to a constitutional court to examine whether a person's detention is lawful. The phrase means, roughly, "produce the body", but the Supreme Court held in Kanu Sanyal v District Magistrate, Darjeeling (1974) that physical production is not essential: the court can examine the legality of detention from the record and the authority's reply. In practice the court often does order production, because seeing the person answers questions about whether they are alive, unhurt and there of their own free will.

The writ works best when the facts are stark. A person was picked up by the police two days ago, has not been produced before a magistrate and the police station denies holding them. An adult woman is locked in her parents' house because she married against their wishes. A preventive detention order was passed but the grounds were never supplied. In each of these, the authority has to explain itself in court, and the burden of justifying the detention lies on the person or authority holding the detainee, not on the petitioner.

It works poorly when there is a valid court order behind the custody. If a magistrate has remanded someone to judicial custody in a registered case, the custody rests on that order, and the usual remedy is bail or a challenge to the remand, not habeas corpus. That limit is explained further below, because it is the single most common reason these petitions fail.

What counts as illegal detention?

Detention is illegal when there is no law authorising it, when the law exists but its conditions were not met, or when the procedure the law requires was not followed. Article 21 of the Constitution says no one may be deprived of personal liberty except according to procedure established by law. Article 22 adds specific protections on arrest: the person must be told the grounds of arrest as soon as possible, must be allowed to consult a lawyer, and must be produced before the nearest magistrate within 24 hours, excluding travel time.

The BNSS turns those guarantees into police duties. Section 36 requires an arrest memo, attested by a witness and countersigned by the arrested person. Section 47 requires the person to be informed of the grounds of arrest and, in bailable offences, of the right to bail. Section 48 requires the police to inform a relative or friend of the arrest and the place of custody. Section 58 bars detention beyond 24 hours without a magistrate's order. A breach of these provisions is not a technicality; it goes to whether the custody is lawful at all.

Private detention counts too. Habeas corpus lies against a private person who holds someone against their will, which is why it is used when a family confines an adult child, when an employer keeps a domestic worker locked in, or when one parent removes a child in breach of a court order. The private holder is made a respondent along with the police, who are asked to trace and produce the person.

Is habeas corpus the right remedy for your situation?

Habeas corpus is not a general complaint mechanism. This table shows where it fits and where another remedy usually works faster.

SituationHabeas corpus?Usually better or additional remedy
Picked up by police, no arrest shown, held more than a few hoursYes, strong caseAlso a written complaint to the DCP and the area magistrate
Arrested, not produced before a magistrate within 24 hoursYesRaise the illegality at the first production and in a bail application
Remanded to judicial custody by a magistrate in a registered FIRRarelyRegular bail, default bail, or a challenge to the remand order
Preventive detention order under the NSA or a similar lawYes, the main remedyRepresentation to the detaining and government authorities, Advisory Board hearing
Adult kept confined by own family after marriage or a relationshipYesPolice protection request; complaint for wrongful confinement
Child taken by the other parent, no custody order existsSometimesCustody petition under the Guardians and Wards Act in the family court
Person missing, no sign anyone is holding themWeakMissing person report, FIR, and a petition for directions on investigation
Bad prison conditions or denial of medical care in jailSometimesApplication to the trial court or jail authorities; writ for directions

Delhi High Court or Supreme Court: where should you file?

In most cases, file in the High Court. Article 226 lets a High Court issue writs where the cause of action arises wholly or partly within its territory, so the Delhi High Court is the forum if the person was picked up in Delhi, is held in Delhi, or the detention order was passed by a Delhi authority. At the Delhi High Court, habeas corpus and preventive detention petitions are listed before a Division Bench that hears criminal writ petitions under the current roster, and the roster also names the bench before which urgent criminal matters are mentioned.

For Noida and Ghaziabad, the territorial court is the Allahabad High Court, not Delhi. Where a person is picked up in Delhi and taken to Uttar Pradesh, or the reverse, a part of the cause of action arises in both places and either High Court may have jurisdiction; which one to approach depends on where the authorities and records are and how quickly the court can act. That choice should be made on the first day, not argued about on the second.

Article 32 allows a direct petition to the Supreme Court, because the right to move it for enforcement of fundamental rights is itself a fundamental right. The Supreme Court does hear habeas corpus petitions, particularly in preventive detention matters and where detention crosses state lines, but it often asks petitioners to go to the High Court first. A Supreme Court petition has to be filed through an Advocate-on-Record. Our page on Supreme Court practice explains that procedure, and an appeal against a High Court's refusal goes up by special leave petition.

Who can file a habeas corpus petition?

Anyone acting genuinely in the detainee's interest can file. The strict rule that only an affected person can approach the court is relaxed for habeas corpus, because the detainee is, by definition, often unable to sign anything. Parents, spouses, siblings, adult children, friends, an employer and a social organisation have all filed successfully. The petitioner must explain their relationship to the detainee and how they know about the detention.

The petition is supported by the petitioner's affidavit, and the facts must be stated from personal knowledge or disclosed sources. If you were not present when the police took the person, say so and name who was. Courts have entertained letters and emails as petitions in extreme cases, but a properly drafted petition with an affidavit is listed and heard faster, and it leaves less room for the respondents to dispute what is being alleged.

Where the detainee is an adult who is free to speak, the court will want to hear from them directly. This matters most in family cases: if a woman produced in court says she is living with her parents willingly, the petition ends there, whatever the petitioner believes about pressure behind the scenes. Before filing, think about whether the detainee, once free to speak, will support the case you are pleading.

How to file a habeas corpus petition in the Delhi High Court

These are the practical steps, in order. In a genuine emergency several of them happen on the same day.

  1. Fix the facts in writing

    Write down who was taken, by whom, when, from where, and every place you were told they had been taken. Note the names or numbers of police officers, the vehicle, and every call or visit you made to the police station. Times matter, because the 24-hour rule is counted from the moment of arrest or detention.

  2. Send written representations

    Send an email and a written complaint to the SHO, the DCP of the district and, where it helps, the Commissioner of Police and the area magistrate, asking whether the person is in custody and on what basis. Keep the sent emails and postal receipts. A denial in writing, or silence, becomes part of the petition.

  3. Draft the petition and affidavit

    The petition is filed as a criminal writ petition under Article 226, with a synopsis and list of dates, the facts, the grounds of illegality, and the prayer for a writ of habeas corpus directing production and release. Add the State (through the Station House Officer or the Commissioner of Police), the detaining authority and any private person holding the detainee as respondents.

  4. File and seek urgent listing

    The petition is e-filed with an application for urgent listing explaining why it cannot wait. Under the current roster, urgent criminal matters are mentioned before a notified Division Bench. Serve an advance copy on the standing counsel for the State so that someone can take instructions before the hearing.

  5. First hearing: notice and status report

    The Bench usually issues notice for a short date, sometimes the same or next day, and directs the police to file a status report or produce the detainee. In many cases the police release the person or show a formal arrest before that date, and the petition then turns into a question of how the earlier custody is to be accounted for.

  6. Production and final order

    If the detainee is produced, the Bench may speak to them, sometimes in chambers. It then either orders release, records that the person is free, directs further inquiry, or dismisses the petition if lawful custody is shown. Ask for a copy of the order the same day, and give it to the police station and jail if release has been ordered.

The same steps apply in principle at the Allahabad High Court for detentions in Noida or Ghaziabad, with that court's own filing rules and roster. A petition in the Supreme Court follows the Advocate-on-Record route and is heard first at the admission stage.

What to put together before you file

You do not need all of this to file in an emergency. What you have on the first day, with a clear affidavit, is enough. Collect the rest while the matter is pending.

About the detainee

  • Identity proof (Aadhaar, passport or voter card copy)
  • Recent photograph
  • Proof of your relationship (ration card, marriage certificate, school record)
  • Medical records if the person has a health condition

About the detention

  • Written timeline with times and places
  • Names, phone numbers and statements of eyewitnesses
  • CCTV footage or the location of cameras near the spot
  • Call records, WhatsApp messages or location shares from the detainee's phone

Your efforts so far

  • Emails and complaints to the SHO, DCP and magistrate
  • Postal receipts and delivery reports
  • Any written reply or denial from the police
  • Daily diary or complaint numbers given to you

If there is an order

  • FIR copy, if a case has been registered
  • Arrest memo or remand order, if any was given
  • Detention order and grounds, in preventive detention cases
  • Any earlier court order on custody of a child

Police custody without arrest: the most common case

The situation we see most often is a person called or taken to a police station "for questioning" and kept there for a day or more, with no arrest shown on paper. The police may say the person came voluntarily and is free to leave. If the person is not, in fact, free to leave, that is detention, and if it lasts beyond what any law permits, it is illegal. A habeas corpus petition forces the police to state on affidavit whether the person was held and on what basis.

The courts have built firm safeguards around this. D.K. Basu v State of West Bengal (1997) laid down arrest guidelines, which now largely appear in the BNSS. In Vihaan Kumar v State of Haryana (2025), the Supreme Court held that informing the arrested person of the grounds of arrest is a constitutional requirement under Article 22(1), and that a failure vitiates the arrest. In Mihir Rajesh Shah v State of Maharashtra (2025), it held that the grounds must be supplied in writing, in a language the person understands, for offences under all statutes, and where they cannot be given at the time of arrest, they must be given at least two hours before the person is produced for remand.

When Advocate B.K. Singh reads a detention complaint of this kind, the first thing he checks is the gap between the time the family says the person was picked up and the time recorded in the arrest memo. Police records often show the arrest as hours or a day later than it happened, which makes the 24-hour limit look satisfied. Independent proof of the earlier time, such as CCTV, a phone location, a cab receipt or a neighbour's statement, is what turns a suspicion into a case. For the rights that apply after a formal arrest, our post on your rights on arrest in Delhi goes through them one by one.

Once a magistrate has remanded the person, is habeas corpus still available?

Usually not. The Supreme Court held in Manubhai Ratilal Patel v State of Gujarat (2013) and SFIO v Rahul Modi (2019) that the legality of detention is judged on the date the court considers the petition, and if by then the person is in custody under a remand order passed by a competent court, a writ of habeas corpus generally will not issue. The remand order is a judicial act, and it is corrected through the criminal courts, by bail, revision or a petition in the High Court, not by habeas corpus.

There are exceptions. A remand order passed without jurisdiction, passed mechanically without the person being produced, or passed on an arrest that was itself void because the grounds were never communicated, can be attacked. After Vihaan Kumar, courts have released persons on finding an Article 22(1) violation even after remand. But these are arguments about the arrest and remand, and they are often better raised in a bail application or a petition under Section 528 BNSS, which keeps the case in its natural forum.

In practical terms: if the person has already been produced and remanded, speak to a lawyer about bail first. Our page on bail in Delhi courts covers the routes, and where the police have missed the deadline for the chargesheet, the post on default bail explains a right that does not depend on the merits at all.

Preventive detention under the NSA and similar laws

Preventive detention is the one area where habeas corpus is the main remedy, not an emergency one. A person detained under the National Security Act 1980, COFEPOSA or a state law is held not for an offence already proved, but to prevent future conduct. Article 22(4) to (7) gives limited protection: the grounds must be communicated, the detainee must have the earliest opportunity to make a representation, and detention beyond three months needs the opinion of an Advisory Board.

Under the NSA, the grounds must ordinarily be given within five days, and in exceptional cases within ten days, with reasons recorded. The government must refer the case to the Advisory Board within three weeks, the Board reports within seven weeks of detention, and the maximum period is twelve months. The detainee can make representations to the detaining authority and the government, and an unexplained delay in deciding that representation has repeatedly been treated as a ground to quash the detention.

Petitions against detention orders succeed on procedure more often than on facts, because the court does not sit in appeal over the authority's satisfaction. The usual grounds are: documents relied on but not supplied, grounds supplied in a language the detainee does not understand, stale incidents with no live link to the order, use of preventive detention where ordinary criminal law was enough, the person already being in custody without a reason to expect release, and delay in deciding the representation. Read the grounds and the documents supplied, line by line, before anything else.

An adult kept away by family, or a couple in danger

An adult has the right to choose where and with whom to live, and to marry a person of their choice. The Supreme Court said so plainly in Lata Singh v State of Uttar Pradesh (2006) and again in Shafin Jahan v Asokan K.M. (2018). When parents or relatives confine an adult to stop a marriage or relationship, the partner or a friend can file habeas corpus, and the court will usually direct the police to produce the person.

The hearing turns on what the adult says when produced. Courts commonly speak to the person away from family members, sometimes in chambers, and record their wish. If they want to leave, the court orders that they be allowed to go and often directs the police to provide protection. If they say they are staying willingly, the court will generally accept that, even if the petitioner disputes it.

These petitions are often combined with a request for police protection, because the risk does not end with the order. In Delhi, the couple can also approach the police for protection, and where a marriage has been registered, the certificate should be annexed. Our post on marriage registration in Delhi covers the registration route, which helps prove the marriage if it is later disputed.

Child custody between parents: why habeas corpus is used sparingly

Habeas corpus can be filed by one parent against the other, but it is not a short cut to custody. In Nithya Anand Raghavan v State (NCT of Delhi) (2017), Tejaswini Gaud v Shekhar Jagdish Prasad Tewari (2019) and Yashita Sahu v State of Rajasthan (2020), the Supreme Court held that the writ is maintainable in child custody disputes, but the court decides on the welfare of the child, not on which parent has the better legal claim. Custody with one parent is not "illegal detention" just because the other parent wants the child.

The writ is most useful in three settings: a child removed in breach of an existing custody order, a child taken abroad or brought to India in breach of a foreign court order, and a child held by someone with no claim at all. In ordinary disputes between parents, where no order exists, the High Court usually directs the parties to the family court, where custody is decided after evidence and with interim visitation.

If your case is a dispute over who should bring up the child, start with our post on how Indian courts decide child custody. Use habeas corpus where there is a clear breach or an urgent risk, and say so in the petition with documents.

Missing person: when habeas corpus helps and when it does not

Families sometimes file habeas corpus when a person has gone missing and the police investigation seems slow. If there is reason to believe a specific person or the police are holding the missing person, the writ is appropriate. If there is no such indication, courts often treat the petition as one for directions on investigation: they ask for status reports, direct that a senior officer supervise, and order steps such as call record analysis or circulation of photographs.

That can be useful, but it is not a guaranteed route, and courts have said repeatedly that habeas corpus is not a substitute for investigation. The groundwork still matters: a missing person report, an FIR where the circumstances suggest kidnapping or abduction, and follow-up in writing with the investigating officer. If the police are refusing to register an FIR, the remedies under the BNSS are set out in our post on police refusing to register an FIR.

There is also a local remedy that many people overlook. Section 100 BNSS (the old Section 97 CrPC) allows 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, and the person found is produced before the magistrate. It can be quicker than a High Court petition when the place of confinement is known and within the magistrate's area.

A made-up example: the son held for two days

Here's a made-up example. Rohit, 26, works at a logistics firm in Mahipalpur. On a Monday afternoon, three men in plain clothes take him from his office, saying they are police and he is needed for questioning about a theft at a warehouse. His colleagues note the time and the car's registration number. By Tuesday evening his parents have been to two police stations; both say he is not there.

On Wednesday morning the family's lawyer sends emails to the DCP and the SHO, and files a habeas corpus petition in the Delhi High Court with the colleagues' affidavits, a screenshot of Rohit's last shared location, and the office CCTV footage showing him leaving with the men. The petition is mentioned for urgent listing and taken up the same afternoon. The Bench directs the State to produce Rohit or explain his whereabouts by the next morning.

On Thursday the police tell the court that Rohit was arrested at 9 pm on Wednesday and produced before the magistrate within 24 hours. The CCTV and the colleagues' statements show he was in custody from Monday afternoon. The Bench records that he has since been remanded, so release by habeas corpus is not ordered, but it directs a senior officer to inquire into the custody before the recorded arrest and keeps the question of compensation open. Rohit's lawyer moves a bail application before the magistrate the same day, relying on the illegal custody. The point of the example is that the petition did its job even without a release order: it fixed the timeline on record.

Compensation and action against officers

Courts can award compensation in writ proceedings for illegal detention. In Rudul Sah v State of Bihar (1983), the Supreme Court awarded compensation to a man kept in jail for years after his acquittal, and in Nilabati Behera v State of Orissa (1993) it held that compensation for violation of fundamental rights by the State is a public law remedy, separate from a civil suit for damages. High Courts, including the Delhi High Court, have awarded compensation where police custody without arrest was established.

Compensation is not automatic. The court looks for clear proof of illegal custody, usually from independent material, and considers the period and the conduct of the officers. It may also direct a departmental inquiry or ask the Commissioner of Police for an action-taken report. A private complaint for wrongful confinement under Section 127 BNS remains available, though a complaint against a public servant for acts done in the course of duty raises questions of sanction that need careful advice.

Mistakes that weaken a habeas corpus petition

  • Waiting before filing. Every day of delay gives the police time to regularise custody by showing a later arrest. File as soon as you have the basic facts and a written denial or silence from the police.
  • Vague allegations. "Police took him some days ago" invites a denial. Give dates, times, places, names and the source of each fact.
  • Filing after remand without addressing it. If a remand order exists, the petition must explain why the custody is still illegal; otherwise it is dismissed as not maintainable.
  • Using habeas corpus for a custody dispute with no order. Without a breach or an urgent risk, the High Court will usually send the parties to the family court.
  • Overstating what you know. An affidavit that claims personal knowledge of events you did not see can be torn apart at the first hearing. Name the witnesses instead.
  • Forgetting the right respondents. Leave out the private person holding the detainee, or the authority that passed the detention order, and the court cannot direct them.

What to do in the first 24 hours

If someone close to you has been taken and you cannot find out where they are held, these are the things to do today.

  • Write a timeline with exact times, places and names of witnesses
  • Ask colleagues, neighbours or shopkeepers to preserve CCTV footage near the spot
  • Visit the local police station and ask in writing whether the person is held there
  • Email the SHO and the DCP of the district, and keep a copy of each email
  • Save the detainee's last messages, calls and location shares
  • Collect the detainee's identity documents and a recent photograph
  • Speak to a lawyer about filing a habeas corpus petition the next working morning
  • If an FIR or arrest is disclosed, get a copy of the FIR and the arrest memo

How long does it take, and what does it cost?

A habeas corpus petition is among the fastest matters in any High Court. In a genuine case of custody without arrest, the first hearing is usually within a day or two of filing, and the police response comes within days. Preventive detention petitions take longer, often weeks or a few months, because the State files a detailed counter affidavit with the detention record and the court examines it closely.

The cost depends on the urgency, the number of hearings and whether the matter goes to the Supreme Court. Court fees on a writ petition are modest. Fees are discussed at the first meeting and agreed in writing, stage by stage. Where the family cannot afford a lawyer, the Delhi High Court Legal Services Committee can assign one, and our post on free legal aid explains who qualifies.

If someone you know is being held and you want an advocate to read the facts and say whether habeas corpus or another remedy fits, the team of Advocate B.K. Singh at B.K. Singh & Associates can look at what you have and tell you what can be filed and where. You can reach us through the online enquiry form, or read about his criminal and constitutional practice.

Frequently asked questions

What is habeas corpus in simple words?

It is a court order requiring whoever is holding a person to bring them before the court, or show the court the legal authority for the detention. If there is no lawful basis, the court orders release. It protects personal liberty under Article 21 of the Constitution.

Can I file a habeas corpus petition for my brother or friend?

Yes. Any relative, friend or person acting genuinely for the detainee can file, because the detainee often cannot. Your affidavit must explain how you know the facts and your relationship to the person.

How quickly is a habeas corpus petition heard in the Delhi High Court?

In genuine cases of custody without arrest, the matter is usually listed within a day or two of filing after an urgent mention. The Bench typically issues notice for a short date and asks the police for a status report or production of the person.

Is habeas corpus maintainable after the police show an arrest?

If the person has been produced and remanded by a magistrate, habeas corpus generally fails because the custody rests on a judicial order. The petition can still record the illegal custody before arrest, but release is usually sought through bail.

Can habeas corpus be filed against a private person?

Yes. It lies against a private individual who confines someone against their will, such as family members confining an adult or a person holding a child in breach of a custody order. The police are made respondents so the court can direct them to produce the person.

Should I file in the Supreme Court directly under Article 32?

You can, but the Supreme Court often asks petitioners to approach the High Court first. A direct Article 32 petition makes sense mainly where detention crosses states, involves central authorities or raises a wider question. It must be filed through an Advocate-on-Record.

Which High Court for a detention in Noida or Ghaziabad?

The Allahabad High Court has jurisdiction over Gautam Buddh Nagar and Ghaziabad. If the person was picked up in Delhi and taken to UP, part of the cause of action arises in Delhi and the Delhi High Court may also be approached.

Can I get compensation for illegal police detention?

Yes, the High Court or Supreme Court can award compensation in writ proceedings, following Rudul Sah and Nilabati Behera. You need clear proof of illegal custody, ideally from independent material such as CCTV, phone location or witnesses.

Is there a time limit for filing habeas corpus?

No statute fixes one, but delay hurts. The court judges legality on the date of hearing, so waiting allows the police to regularise custody. In preventive detention cases, file once the grounds are received and the representation has been made.

How do I challenge an NSA detention order?

Make a representation to the detaining authority and the government at once, and file a habeas corpus petition in the High Court. Most challenges succeed on procedure, such as documents not supplied, grounds in a language the detainee does not understand, or delay in deciding the representation.

Can a father file habeas corpus to get his child back from the mother?

He can, but the court decides on the child's welfare, not on a parent's right. Unless the child was removed in breach of a custody order or there is an urgent risk, the High Court usually directs the parties to the family court.

What if the police say the person came voluntarily?

The court will look at whether the person was in fact free to leave. Evidence of how long they were held, calls to the family being blocked, or refusal to let a lawyer meet them shows detention. The police will have to explain the custody on affidavit.

Advocate B.K. Singh

Written and reviewed at B.K. Singh & Associates

Advocate B.K. Singh

Founder of B.K. Singh & Associates. MCA, LL.B., LL.M., with more than twenty years of practice before the Supreme Court, the Delhi High Court, district courts and tribunals across Delhi NCR. This article explains the general law as of 24 October 2026; it is not legal advice on your facts.

Talk to an advocate about your matter

Share the notice, order or a short note of what happened. We will tell you the deadline and the next step.

Send an enquiry Call +91 96259 61599
WhatsApp us