DefineLaw

What is habeas corpus?

Habeas corpus is a legal action that lets a person challenge the lawfulness of their detention or imprisonment.

Habeas corpus is a court order requiring a person be brought before a judge to test the lawfulness of their detention.

Where the word "Habeas Corpus" comes from

Habeas corpus comes from the Latin phrase habeas corpus ad subjiciendum, you shall have the body brought before the court. It is an ancient writ, enshrined in the Constitution, that lets a prisoner ask a court to examine whether the detention is lawful.

Why Habeas Corpus matters

It is the ultimate safeguard against unlawful imprisonment, allowing courts to review the basis of a person's confinement. It is available to criminal defendants challenging their conviction and to others held without lawful authority.

Common confusion about Habeas Corpus

Habeas corpus is not a direct appeal of a conviction, though prisoners often use it after appeals are exhausted. The writ is limited to claims that the detention violates the Constitution or federal law, so it is a review of lawfulness, not a general re-examination of guilt.

A real-world example of Habeas Corpus

A state prisoner argues that his trial attorney provided ineffective assistance that deprived him of a fair trial. After his direct appeals fail, he files a habeas petition in federal court, asking it to review whether his continued imprisonment is lawful.

A worked example of Habeas Corpus

A person is held in immigration detention without a hearing for months. Her attorney files a habeas petition, and the court orders the government to show why the detention is lawful, and to release her if no valid basis exists. In a criminal case, a federal court may grant habeas if the state trial violated constitutional rights, and the state must then retry the prisoner or release him, which shows how the writ reaches both civil and criminal detention.

How Habeas Corpus works in practice

Habeas petitions have strict deadlines and procedural requirements, so file promptly and follow the rules precisely, because a procedural default can bar the claim. Exhaust state remedies before seeking federal habeas in criminal cases. Consult an attorney experienced in habeas law, because the process is technical and the stakes, freedom, are the highest there are.

DefineLaw editors — plain-English definitions for general reference; not a substitute for advice from a licensed attorney.

Questions about Habeas Corpus

Who can file habeas corpus?

A person in custody who claims unlawful detention.

Does it free the detainee automatically?

No — the court first reviews the legality of the detention.

Is it only for criminal cases?

No, it can also challenge civil or immigration detention.

What does “the Great Writ” mean?

It is called that for its role as a fundamental liberty safeguard.

Related litigation terms