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.