Skip to main content

Writ of Habeas Corpus

A writ of habeas corpus is a judicial order used to determine whether a person's imprisonment, detention or other restraint on personal liberty is lawful. The term habeas corpus comes from Latin, meaning “you shall have the body,” reflecting the historical requirement that a detained person be brought before a court.

Often referred to as the “Great Writ,” habeas corpus is a fundamental legal safeguard against unlawful imprisonment and arbitrary government detention. Its origins date back to English common law, and its protections are recognized in the United States Constitution.

A person seeking habeas corpus relief generally files a petition asking a court to review the legal basis for their detention. The court may require the government or other custodian to explain why the individual is being held and demonstrate the legal authority supporting that detention.

Habeas corpus petitions may arise in matters involving:

  • Unlawful arrest or imprisonment.

  • Criminal convictions obtained in violation of constitutional rights.

  • Ineffective assistance of counsel.

  • Immigration detention.

  • Unlawful or prolonged government detention.

  • Continued imprisonment beyond a legally authorized sentence.

Habeas corpus differs from a direct appeal. While an appeal generally challenges errors made during the original court proceedings, a habeas corpus petition is a separate legal proceeding that challenges the lawfulness of a person's custody. It is commonly considered a form of collateral review.

Federal law establishes different procedures depending on the nature of the detention. Under 28 U.S.C. § 2241, individuals may challenge certain forms of custody, including immigration detention. Section 2254 governs federal habeas corpus petitions challenging state court judgments, while Section 2255 provides a related procedure for individuals challenging federal criminal convictions or sentences.

Individuals challenging criminal convictions may be subject to strict filing deadlines, requirements to exhaust available legal remedies and restrictions on successive petitions.

If a court determines that a person's detention is unlawful, it may order their release or grant other appropriate relief, such as a new trial, resentencing or a hearing concerning continued detention. A successful habeas corpus petition does not necessarily establish innocence or prevent further lawful proceedings.

The U.S. Constitution's Suspension Clause provides that the privilege of the writ of habeas corpus may not be suspended unless, in cases of rebellion or invasion, public safety may require it.

Both federal and state courts administer habeas corpus proceedings, although jurisdictional requirements, procedural rules and available remedies vary.

Share This Term

Protesters hold a “Release Mahmoud Khalil” sign featuring his portrait outside Columbia University.

Mahmoud Khalil Asks Supreme Court to Overturn Ruling That Could Put Him Back in ICE Custody

Mahmoud Khalil, the former Columbia University graduate student who spent 104 days in immigration detention over his pro-Palestinian activism, asked the U.S. Supreme Court on October 19, 2026, to overturn a ruling that could send him back into ICE custody as the Trump administration pursues his deportation.Khalil, a lawful permanent... Read More about Mahmoud Khalil Asks Supreme Court to Overturn Ruling That Could Put Him Back in ICE Custody

ICE officer badge and handcuffs displayed on an American flag.

Trump-Appointed Judge Says ICE Agents Falsified Records After Illegal Arrests

A Trump-appointed federal judge found that Immigration and Customs Enforcement agents made illegal arrests during a Bronx operation, falsified official records, and gave apparently false testimony after arresting a man they had mistaken for someone else.U.S. District Judge Gary R. Brown issued the findings Monday, October 5, 2026, in the... Read More about Trump-Appointed Judge Says ICE Agents Falsified Records After Illegal Arrests

Portrait-style identification photo of a woman with short dark hair against a light blue background, with the subject's name and other details visible on a document at the bottom.

Ghislaine Maxwell’s Bid to Overturn Sex Trafficking Conviction Rejected by Federal Judge

A federal judge has rejected Ghislaine Maxwell’s bid to overturn her sex trafficking conviction and 20-year prison sentence, finding that her constitutional claims and evidence from newly released Jeffrey Epstein files did not provide grounds to set aside the verdict.U.S. District Judge Paul A. Engelmayer denied Maxwell’s habeas corpus petition... Read More about Ghislaine Maxwell’s Bid to Overturn Sex Trafficking Conviction Rejected by Federal Judge

Legal term

Search articles and Legalpedia

Topics

Subscribe to Newsletter