Habeas corpus, explained

by Barrister Tahmidur Rahman | Oct 24, 2026

60-second explainer

Habeas corpus, step by step.

ExplainerHabeas corpus in 60 seconds
What it means

Habeas corpus is a writ that asks the High Court Division to check whether someone is being held lawfully.

In plain English

Any person, such as a relative or friend, can file it under Article 102(2)(b)(i) of the Constitution.

In plain English

The court calls on the authority or person holding the detainee to produce them and justify the custody.

What to do · 01

Write down the facts

Note who took the person, when, where, any vehicle or unit names, and witnesses. Keep copies of any papers left behind.

What to do · 02

Check with the police and courts

Ask the police station in writing whether the person is held and in which case, and check the magistrate court for any production or remand order.

What to do · 03

Instruct an advocate quickly

Any relative or friend can file a writ petition under article 102(2)(b)(i). Bring identity documents and any evidence of the detention.

What to do · 04

Use parallel remedies

If the person is held in a registered case, apply for bail at the same time. For a suspected secret detention, consider a magistrate's search warrant.

Done

You have the basics.

Test yourself, then read the full explanation.

Test yourselfRead in full
1 / 9
In short

Habeas corpus is a writ that asks the High Court Division to check whether someone is being held lawfully. Any person, such as a relative or friend, can file it under Article 102(2)(b)(i) of the Constitution. The court calls on the authority or person holding the detainee to produce them and justify the custody. If there is no lawful authority for the detention, the court orders release.

What habeas corpus means

Habeas corpus is Latin for "you may have the body". In Bangladesh it is an order of the High Court Division directing that a person in custody be brought before the court, so that the court can satisfy itself that the person is not being held without lawful authority or in an unlawful manner.

The writ tests the legality of the custody, not the guilt of the detainee. The question is whether the people holding someone have a lawful basis for doing so and have followed the procedure the law requires. If they do not, the court can order release. If they do, the petition fails, even if the detainee may later be found innocent at trial.

Where habeas corpus comes from in Bangladesh law

The power comes from article 102(2)(b)(i) of the Constitution. Unlike most writs, it can be sought "on the application of any person", so the petitioner need not be personally affected. It protects the rights in article 32 (no deprivation of life or personal liberty save in accordance with law) and article 33, which requires an arrested person to be told the grounds of arrest, allowed a lawyer and produced before a magistrate within 24 hours, excluding travel time.

Section 491 of the Code of Criminal Procedure 1898 gives the High Court Division a similar power to free a person illegally or improperly detained, but section 491(3) excludes people held under preventive detention laws. For that reason, and because article 44 guarantees the right to move the court for fundamental rights, most applications are now filed as writ petitions under article 102.

How a habeas corpus petition works in court

A lawyer files a writ petition with an affidavit setting out who is detained, by whom, since when and on what basis, as far as the petitioner knows. At the first hearing, called the motion hearing, the Bench may issue a Rule calling on the Home Ministry, police, jail or other respondents to produce the detainee and show cause why the detention should not be declared unlawful.

Because liberty is at stake, the court usually fixes a short return date. The respondents must disclose the case, warrant or detention order relied on. The court then checks whether that authority exists and whether constitutional and statutory safeguards were followed. How quickly a case ends depends on the Bench's list and the facts, so petitioners should expect several hearings rather than a single day.

Police custody, preventive detention and missing persons

Common grounds include detention beyond 24 hours without production before a magistrate, and arrests that ignore the rules added to the CrPC by the Code of Criminal Procedure (Amendment) Act 2026 (Act No. 11 of 2026, treated as in force from 2025). These require a memorandum of arrest, notice to a family member within 24 hours where the person is arrested away from home (section 46A), reasons for arrest (section 54A) and safeguards on "shown arrest" in another case (section 167A).

For preventive detention, article 33 requires the grounds to be communicated and an Advisory Board to approve detention beyond six months. Where the authorities deny holding someone, the Enforced Disappearance Prevention and Remedy Act 2026 lets the competent court issue search warrants to find the person (section 16), and a magistrate can issue a search warrant for a wrongfully confined person under section 100 CrPC.

Child custody and private detention

The writ can also be used against private persons, most often in disputes over a child. The High Court Division treats this as an exceptional, summary remedy. Where one parent has the child and nothing suggests unfitness, neglect or abuse, recent decisions hold that this is not unlawful detention and send the parties to the Family Court, which has jurisdiction over guardianship and custody under section 5 of the Family Courts Act 2023.

A habeas corpus petition may still succeed where a child has been snatched, hidden or taken in breach of a court order, or where urgent protection is needed. The child's welfare is the deciding consideration, and the court may give interim directions on contact while the Family Court case proceeds.

What happens after the decision

If the court makes the Rule absolute, it declares the detention without lawful authority and directs release, sometimes with directions to the authorities. Release does not end any pending criminal case; it only ends custody that had no lawful basis. If the court discharges the Rule, the detention continues and any interim order ends.

Either side may challenge the judgment in the Appellate Division, usually by a petition for leave to appeal under article 103(3), and urgent stays are heard by the Chamber Judge. A detainee whose petition fails can still seek bail in the criminal case, or challenge a detention order afresh if new grounds arise.

Habeas corpus is not bail

People often confuse the two. Bail assumes the custody is lawful and asks the court to release the accused on conditions while the case continues. Habeas corpus says the custody itself has no lawful basis. If a person has been properly arrested in a registered case and produced before a magistrate, the right remedy is usually bail, not habeas corpus.

It also differs from quashing under section 561A CrPC, which ends a criminal proceeding that is an abuse of process, and from certiorari, which sets aside an unlawful order. A habeas corpus petition can be combined with a challenge to a detention order where both are needed.

Case story
Suppose a young man is taken from his home at night by men who say they are police. Two days later the local police station says it has no record of him. His sister files a habeas corpus petition. The High Court Division issues a Rule and orders the authorities to produce him. They produce him and show a later arrest in a theft case, but no memorandum of arrest and no production before a magistrate within 24 hours. The court declares the earlier custody unlawful and directs that he be dealt with only according to law, leaving him to seek bail in the theft case.
A hypothetical illustration, not a real case.

What to do if this affects you

  1. 01
    Write down the facts

    Note who took the person, when, where, any vehicle or unit names, and witnesses. Keep copies of any papers left behind.

  2. 02
    Check with the police and courts

    Ask the police station in writing whether the person is held and in which case, and check the magistrate court for any production or remand order.

  3. 03
    Instruct an advocate quickly

    Any relative or friend can file a writ petition under article 102(2)(b)(i). Bring identity documents and any evidence of the detention.

  4. 04
    Use parallel remedies

    If the person is held in a registered case, apply for bail at the same time. For a suspected secret detention, consider a magistrate's search warrant.

  5. 05
    Attend every hearing

    Be available on the return date with documents, and follow any directions the Bench gives about meeting or producing the detainee.

Flashcards

Test yourself on Habeas corpus

0 known · 0 to review
Question 1 of 7What does “Habeas corpus” mean?Tap to reveal the answer
AnswerA High Court Division order requiring a person held in custody to be brought before it, so the court can decide whether the detention is lawful.
Question 2 of 7Who can file a habeas corpus petition in Bangladesh?Tap to reveal the answer
AnswerAny person can file it. Article 102(2)(b) lets the High Court Division act "on the application of any person", so a parent, spouse, sibling, friend or even an organisation can apply for a detainee. The petitioner should, however, give honest and specific facts on affidavit, because the court relies on them when deciding whether to call on the authorities to produce the detainee.
Question 3 of 7Can habeas corpus be used against preventive detention?Tap to reveal the answer
AnswerYes. It is the usual way to challenge detention under the Special Powers Act 1974 or similar laws. The court checks whether the detention order was lawfully made, whether the grounds were given as article 33(5) requires, and whether an Advisory Board approved detention beyond six months. Section 491 CrPC does not apply to preventive detention, so the petition is filed under article 102.
Question 4 of 7How fast does the High Court Division hear these cases?Tap to reveal the answer
AnswerHabeas corpus petitions are treated as urgent and the court often fixes a short return date for producing the detainee. The total time still depends on the Bench's cause list, the respondents' reply and whether facts are disputed. Some cases end within days or weeks, while contested cases can take longer. Asking for an early hearing date is important.
Question 5 of 7Does winning a habeas corpus case end the criminal case?Tap to reveal the answer
AnswerNo. A successful petition ends custody that had no lawful basis. Any criminal case that has been lawfully registered continues in the ordinary courts. The person may later be arrested again only in accordance with law, for example on a warrant or under the arrest rules in the Code of Criminal Procedure as amended in 2026.
Question 6 of 7Can a parent use habeas corpus to get custody of a child?Tap to reveal the answer
AnswerOnly in exceptional cases. The High Court Division has said that a child living with a parent is not normally in unlawful detention, and that custody disputes belong in the Family Court under the Family Courts Act 2023. Habeas corpus may help where a child is hidden, abducted or kept in breach of a court order, or where the child's safety is at risk.
Question 7 of 7What can be done if the High Court Division refuses the petition?Tap to reveal the answer
AnswerThe petitioner can ask the Appellate Division for leave to appeal under article 103(3) of the Constitution and seek urgent relief from the Chamber Judge. Separately, the detainee can apply for bail in any pending case, or file a fresh challenge if the detention order is renewed or new facts come to light.
Deck complete.You knew 0 of 7.

Questions about Habeas corpus

Who can file a habeas corpus petition in Bangladesh?

Any person can file it. Article 102(2)(b) lets the High Court Division act "on the application of any person", so a parent, spouse, sibling, friend or even an organisation can apply for a detainee. The petitioner should, however, give honest and specific facts on affidavit, because the court relies on them when deciding whether to call on the authorities to produce the detainee.

Can habeas corpus be used against preventive detention?

Yes. It is the usual way to challenge detention under the Special Powers Act 1974 or similar laws. The court checks whether the detention order was lawfully made, whether the grounds were given as article 33(5) requires, and whether an Advisory Board approved detention beyond six months. Section 491 CrPC does not apply to preventive detention, so the petition is filed under article 102.

How fast does the High Court Division hear these cases?

Habeas corpus petitions are treated as urgent and the court often fixes a short return date for producing the detainee. The total time still depends on the Bench's cause list, the respondents' reply and whether facts are disputed. Some cases end within days or weeks, while contested cases can take longer. Asking for an early hearing date is important.

Does winning a habeas corpus case end the criminal case?

No. A successful petition ends custody that had no lawful basis. Any criminal case that has been lawfully registered continues in the ordinary courts. The person may later be arrested again only in accordance with law, for example on a warrant or under the arrest rules in the Code of Criminal Procedure as amended in 2026.

Can a parent use habeas corpus to get custody of a child?

Only in exceptional cases. The High Court Division has said that a child living with a parent is not normally in unlawful detention, and that custody disputes belong in the Family Court under the Family Courts Act 2023. Habeas corpus may help where a child is hidden, abducted or kept in breach of a court order, or where the child's safety is at risk.

What can be done if the High Court Division refuses the petition?

The petitioner can ask the Appellate Division for leave to appeal under article 103(3) of the Constitution and seek urgent relief from the Chamber Judge. Separately, the detainee can apply for bail in any pending case, or file a fresh challenge if the detention order is renewed or new facts come to light.

Call the Dhaka office+880 1708 000660WhatsApp · message usMessage our team
Message TRW on WhatsApp