What Is Habeas Corpus?

Habeas corpus — Latin for “you shall have the body” — is one of the oldest protections in Anglo-American law: the right of someone in custody to have a court examine whether that detention is actually legal.

A Constitutional Guarantee

The writ of habeas corpus is explicitly protected in the U.S. Constitution itself: “The privilege of the Writ of Habeas Corpus shall not be suspended, unless when in Cases of Rebellion or Invasion the public Safety may require it” (Article I, Section 9). It has been suspended only a handful of times in American history, always during major crises.

How It Works

A person in custody — the petitioner — files a habeas petition against whoever holds them (typically a warden or prison superintendent, called the respondent), arguing that the confinement itself is unlawful. The court then orders the respondent to justify the detention. Because it challenges an ongoing deprivation of liberty, habeas petitions are treated as urgent, moving ahead of most other civil matters on a court’s docket, with a response typically required within days rather than months.

After reviewing the response, the court can dismiss the petition, hold a hearing to gather more information, or grant the writ and order the person released. Only a court can issue the writ itself.

Federal and State Habeas Relief

Federal prisoners can seek habeas relief under 28 U.S.C. § 2241. State prisoners have a separate path under 28 U.S.C. § 2254 — but only after exhausting every avenue for the same relief available in their own state’s courts first. Because of that exhaustion requirement, and because federal courts generally defer to state courts to correct their own errors, relatively few state prisoners ultimately win release through a federal habeas petition; most habeas litigation runs its course entirely within the state system that imposed the original confinement.

See also how the criminal justice process works.