BriefLaw.us
Constitution and rights

Habeas corpus

The court order that tests whether a person is lawfully held

In briefHabeas corpus is a court order that makes the government bring a prisoner before a judge and show a legal reason for holding them. If there is none, the judge orders the person released.

Not legal advice. This page is general information, not legal advice. Anyone facing a real decision should talk to a lawyer licensed in their state; laws change, and exceptions can apply.

What it means

The phrase is Latin for "you have the body." It is the opening of an old English court order telling a jailer to produce a prisoner. The full name is habeas corpus ad subjiciendum, and lawyers often call it the Great Writ.

A habeas case does not ask whether the prisoner is guilty. It asks whether the detention is lawful. A person held with no charge, a person held after their sentence has ended, and a person convicted at a trial that broke the Constitution can all ask for it.

Where it comes from

The Constitution does not grant the writ. It assumes the writ exists and limits when it can be taken away. Article I, Section 9 says:

"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."

This is called the Suspension Clause. The working rules are in federal statutes:

LawWho uses it
28 U.S.C. § 2241People held in violation of federal law who are not challenging a conviction, including people in immigration detention
28 U.S.C. § 2254People convicted in state court
28 U.S.C. § 2255People convicted in federal court (a motion to the sentencing court, used in place of habeas)

Federal courts have had the power since the Judiciary Act of 1789. At first it reached federal prisoners only. Congress extended it to state prisoners in 1867.

How a habeas case works

  • It is a civil lawsuit. The prisoner files a petition. The other side is the person holding them, usually the prison warden.
  • A challenge to a prisoner's current custody is filed where the prisoner is held. The Supreme Court confirmed this rule in Rumsfeld v. Padilla (2004). State prisoners may also file where they were convicted, and federal prisoners challenging a sentence go to the court that imposed it.
  • State prisoners must use the state courts first. A federal court will hear a claim only after the state courts have had the chance to rule on it.
  • There is a deadline. Since 1996, most prisoners have one year to file.
  • Federal judges must defer to state courts. On a claim the state courts decided on the merits, a federal court can grant relief only if the state court's ruling was contrary to, or an unreasonable application of, clearly established Supreme Court law, or rested on an unreasonable reading of the facts.
  • A second petition is rarely allowed.

The deadline, the deference rule and the limit on second petitions all come from one 1996 law, the Antiterrorism and Effective Death Penalty Act, known as AEDPA.

When it has been suspended

The writ has been suspended four times:

  1. The Civil War. President Lincoln suspended it in 1861. Chief Justice Roger Taney ruled in Ex parte Merryman that only Congress could do that. Congress authorized the suspension in 1863.
  2. South Carolina, 1871. President Grant suspended it in nine counties to break the Ku Klux Klan.
  3. The Philippines, 1905, while the islands were a U.S. territory.
  4. Hawaii, 1941, after the attack on Pearl Harbor.

In 2025 a senior White House adviser said the administration was looking at suspending the writ for immigration cases. It did not do so.

Key cases

CaseWhat it decided
Ex parte Milligan (1866)Civilians cannot be tried by military courts where the ordinary courts are open
Boumediene v. Bush (2008)Detainees at Guantanamo Bay have a constitutional right to seek habeas
DHS v. Thuraissigiam (2020)Congress may limit habeas review for an asylum seeker stopped just after crossing the border
Shinn v. Ramirez (2022)A federal court cannot hold a hearing or consider new evidence because a prisoner's state postconviction lawyer did a poor job
Trump v. J.G.G. (2025)People facing removal under the Alien Enemies Act must challenge it through habeas, in the district where they are held, and must be given notice and time to do so

Where it stands now

Since 1996, Congress and the Supreme Court have made it steadily harder for convicted prisoners to win habeas relief. In the 2025–26 term the Court summarily reversed at least two lower-court rulings that had granted it.

Most new activity is in immigration. Many detained immigrants have filed habeas petitions asking for bond hearings. On October 1, 2026, the Supreme Court agreed to decide whether the law requires detention without bond for people who entered without being admitted (Rhoney v. Barbosa da Cunha). The case has not yet been argued.