
Last updated: 18 October 2026. This guide covers habeas corpus in US federal law, with notes on England and Wales. Court cases mentioned are current as of October 2026. It is general information, not legal advice.
Short answer: Habeas corpus is a court order requiring whoever holds a prisoner to bring that person before a judge and justify the detention. If the jailer cannot show a lawful basis, the court orders release. The US Constitution allows the writ to be suspended only “in Cases of Rebellion or Invasion” when public safety requires it, a power most scholars assign to Congress.
Key takeaways
- A writ of habeas corpus tests whether a detention is lawful. It does not decide guilt or innocence.
- Federal habeas is mainly governed by 28 U.S.C. §§ 2241, 2254 and 2255, and has been heavily restricted since the Antiterrorism and Effective Death Penalty Act of 1996 (AEDPA).
- Habeas has been formally suspended only a handful of times in US history, most famously by Abraham Lincoln during the Civil War.
- Since 2025, habeas petitions have become the main route for challenging immigration detention and Alien Enemies Act removals, and the Supreme Court agreed on 1 October 2026 to decide a major detention case.
What is habeas corpus?
The Latin phrase means “you shall have the body”. The writ developed in medieval England as an order to a jailer to produce a prisoner in court, and by the 17th century it had become the main protection against imprisonment by order of the Crown without lawful cause. A detainee, or someone acting for them, files a petition. The court orders the custodian to respond (a “return”) explaining the legal authority for the detention. If the explanation fails, the judge orders release or other relief.
Habeas is a civil proceeding, even when the person is a convicted prisoner. It is separate from a criminal appeal, and it can be used against detention by police, prisons, immigration officials or the military. Unlawful detention by a private person is usually dealt with through the tort of false imprisonment or the criminal law instead.
What does the US Constitution say about habeas corpus?
The Suspension Clause in Article I, Section 9, Clause 2 reads: “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.”
Three points follow from the text. First, the Constitution assumes the writ exists and protects it. Second, suspension is allowed only in two situations, rebellion or invasion, and only where public safety requires it. Third, the clause sits in Article I, which deals with Congress. That placement is the main reason most courts and scholars conclude that only Congress, or the President acting with Congress’s authorisation, can suspend the writ.
How does federal habeas corpus work today?
Congress gave federal courts habeas jurisdiction in the Judiciary Act of 1789 and has expanded and narrowed it many times since. Today there are three main routes:
| Statute | Who uses it | Where to file | Main limits |
|---|---|---|---|
| 28 U.S.C. § 2241 | People held without a criminal conviction, such as immigration detainees, pre-trial detainees and military detainees; also some federal prisoners challenging how a sentence is carried out | Federal district court where the person is confined, naming the immediate custodian | Must show custody “in violation of the Constitution or laws or treaties of the United States” |
| 28 U.S.C. § 2254 | People in custody under a state court judgment | Federal district court, after state remedies are exhausted | One-year deadline, exhaustion, strong deference to state court decisions, strict limits on second petitions |
| 28 U.S.C. § 2255 | Federal prisoners attacking their conviction or sentence | The court that imposed the sentence (technically a motion, not a petition) | One-year deadline; second motions need permission from the court of appeals |
What did AEDPA change?
The Antiterrorism and Effective Death Penalty Act of 1996 made federal habeas much harder for convicted prisoners. Its main features are:
- A one-year limitation period, usually running from the date the conviction became final (28 U.S.C. § 2244(d)), paused while a properly filed state post-conviction application is pending.
- Deference to state courts. A federal court can grant relief on a claim decided by a state court only if that decision was contrary to, or an unreasonable application of, clearly established Supreme Court law, or rested on an unreasonable view of the facts (§ 2254(d)).
- Limits on successive petitions. A second petition needs authorisation from the court of appeals and must rely on new evidence of innocence or a new constitutional rule made retroactive by the Supreme Court (§ 2244(b)).
In practice, most petitions from state prisoners are denied, often on procedural grounds such as missing the deadline or failing to raise the issue in state court first.

When has habeas corpus been suspended in the United States?
Formal suspensions have been rare. The National Constitution Center lists four main episodes.
- The Civil War (1861 to 1865). In April 1861, with Congress out of session and Washington cut off by rioting in Maryland, Lincoln authorised General Winfield Scott to suspend the writ along the military line to the capital. John Merryman, a Maryland militia officer accused of sabotaging railway bridges, was arrested on 25 May 1861. Chief Justice Roger Taney, sitting as a circuit judge in Ex parte Merryman, held that only Congress could suspend the writ. The army ignored his order. Congress later passed the Habeas Corpus Suspension Act in March 1863, and Lincoln relied on it for a nationwide suspension later that year.
- South Carolina (1871). Under the Ku Klux Klan Act of 1871, President Ulysses S. Grant suspended the writ in nine South Carolina counties to break Klan violence.
- The Philippines (1905). The US-appointed governor suspended the writ in two provinces under a 1902 act of Congress.
- Hawaii (1941). After the attack on Pearl Harbor, the territorial governor declared martial law and suspended the writ. In Duncan v. Kahanamoku (1946), the Supreme Court held that the military trials of civilians that followed were not authorised.
The other key Civil War case is Ex parte Milligan (1866). Lambdin Milligan, an Indiana civilian, was sentenced to death by a military commission. The Supreme Court held that civilians cannot be tried by military tribunals where the ordinary civilian courts are open and working, even in wartime.
Does habeas corpus protect non-citizens and people held abroad?
Yes, in many cases. In Boumediene v. Bush, 553 U.S. 723 (2008), the Supreme Court held 5 to 4 that foreign nationals held as enemy combatants at Guantanamo Bay have a constitutional right to habeas corpus. Congress had tried to remove federal court jurisdiction in the Military Commissions Act of 2006, without formally suspending the writ. The Court held that this was an unconstitutional suspension because the substitute review procedure was not an adequate replacement. Justice Kennedy wrote that the laws and the Constitution “are designed to survive, and remain in force, in extraordinary times.”
What has happened to habeas corpus in 2025 and 2026?
Habeas has returned to the front pages because of immigration enforcement.
Talk of suspension
On 9 May 2025, White House deputy chief of staff Stephen Miller told reporters that “the privilege of the writ of habeas corpus can be suspended in a time of invasion”, adding: “So it’s an option that we’re actively looking at.” As of October 2026, there has been no suspension of habeas corpus. Most constitutional scholars say a President cannot suspend the writ without Congress, and that unlawful migration is not an “invasion” in the constitutional sense, though the Supreme Court has never ruled on either point.
Alien Enemies Act removals
In March 2025 the administration invoked the Alien Enemies Act of 1798 to remove Venezuelan nationals it said belonged to the Tren de Aragua gang. In Trump v. J.G.G. (7 April 2025), the Supreme Court ruled 5 to 4 that detainees’ challenges fall within the “core” of habeas corpus and must be brought as habeas petitions in the district where they are held, not as ordinary civil suits in Washington, DC. It also held that detainees must get notice “within a reasonable time and in such a manner as will allow them to actually seek habeas relief”. In A.A.R.P. v. Trump (16 May 2025), it held that roughly a day’s notice without information on how to challenge removal “surely does not pass muster”.
In September 2025 a panel of the Fifth Circuit held that the Act had been unlawfully invoked. The full court reheard the case, but on 13 August 2026 it dismissed the appeal as moot because the named plaintiffs had already been removed under other laws. Whether the invocation was lawful remains undecided.
Immigration detention without bond hearings
The government has also argued that people who entered the US without inspection must be detained, with no bond hearing, while their removal cases proceed. Thousands of detainees have filed habeas petitions under § 2241. According to the Associated Press, most courts of appeals that have considered the issue rejected the government’s reading, while the Fifth and Eighth Circuits accepted it. On 1 October 2026 the Supreme Court granted review in Rhoney v. Barbosa da Cunha (No. 26-104), a case from the Second Circuit brought by a Brazilian national. A decision is likely by the end of the Court’s term in mid-2027. For more on detention and removal, see our pieces on ICE detention of a person with a pending asylum case and family immigration cases that overlap with removal proceedings.
How do you file a habeas corpus petition?
The details depend on the type of custody, but the general steps in federal court are:
- Identify the right statute. State prisoners use § 2254, federal prisoners challenging a sentence use § 2255, and immigration and other non-criminal detainees usually use § 2241.
- Exhaust other remedies. State prisoners must first present each claim to the state’s highest court. Courts often expect administrative remedies to be used first in § 2241 cases too.
- Watch the clock. The one-year AEDPA deadline applies to §§ 2254 and 2255. Immigration detainees facing removal may need emergency filings within hours or days.
- File in the right court and name the right respondent. For § 2241 petitions this is normally the warden or field office director with day-to-day control, in the district of confinement.
- Use the court’s form. Most federal courts publish standard petition forms. The filing fee for a habeas petition is $5, and prisoners who cannot pay can apply to proceed without paying.
- Get help. Federal public defenders, law school clinics and immigration legal aid organisations handle many habeas cases. Remedies to stop removal itself are covered in our guide to legal remedies to prevent deportation.
How does habeas corpus work in England and Wales?
The writ is older in England than anywhere else. Chapter 39 of Magna Carta (1215) promised that no free man would be imprisoned except by the lawful judgment of his peers or the law of the land, and the Habeas Corpus Act 1679 set out the procedure, with penalties for jailers who refused to comply. In Somerset v Stewart (1772), Lord Mansfield used the writ to free James Somerset, an enslaved man held on a ship bound for Jamaica.
Today an application is made to the High Court under Part 87 of the Civil Procedure Rules, and it takes priority over other court business. In practice, most challenges to detention decisions are brought by judicial review, and habeas is used where the detention itself has no lawful basis. In Rahmatullah v Secretary of State for Defence [2012] UKSC 48, the Supreme Court held that the writ could be issued for a man captured by British forces in Iraq and handed to the US, because the UK arguably still had the means to obtain his release.
Other common law countries have equivalents. India’s Constitution, for example, lets the Supreme Court and High Courts issue writs of habeas corpus to enforce fundamental rights, as our article on Article 32 of the Constitution of India explains.
Frequently asked questions
What does habeas corpus mean in simple terms?
It means “you shall have the body”. In practice, it is a court order requiring the person or agency holding a prisoner to bring them before a judge and show a lawful reason for the detention. If they cannot, the court orders release.
Can the President suspend habeas corpus?
The Constitution allows suspension only in cases of rebellion or invasion when public safety requires it. Because the Suspension Clause is in Article I, most courts and scholars say Congress must act. Lincoln suspended it on his own in 1861, but later relied on an 1863 act of Congress.
Has habeas corpus been suspended in 2025 or 2026?
No. A senior White House adviser said in May 2025 that suspension was “an option” being considered, but as of October 2026 there has been no formal suspension. Federal courts continue to hear large numbers of habeas petitions, including from immigration detainees.
Is a habeas petition the same as an appeal?
No. An appeal reviews errors at trial and must be filed quickly after judgment. Habeas is a separate civil action that challenges the lawfulness of custody, usually on constitutional grounds, and is often brought after appeals have been exhausted.
How long do you have to file a federal habeas petition?
For prisoners challenging a state conviction under § 2254, or a federal conviction under § 2255, the general deadline is one year, usually from when the conviction became final. Time spent on properly filed state post-conviction proceedings does not count towards the year.
Can non-citizens file for habeas corpus?
Yes. Non-citizens held by US immigration authorities can file habeas petitions under § 2241, and the Supreme Court held in Boumediene v. Bush that foreign detainees at Guantanamo Bay also have a constitutional right to the writ.
This article is general information about habeas corpus and is not legal advice. Deadlines in habeas and immigration cases can be very short, so anyone in custody, or with a family member in custody, should contact a lawyer or legal aid organisation immediately.
Where the legal industry reads first.
Enjoyed this article? Get the biggest legal industry updates, deals, appointments, insights and expert interviews in your inbox, free.
No spam. Unsubscribe anytime.From Legal Desire
Is your firm the one being cited, or the one being skipped?
We ran the test. On several everyday legal questions, software companies are answering and law firms are not. We help firms fix that, and we build the technology behind the practice.
Lawyers and firms: get featured on Legal Desire
Share your deals, lateral moves, firm news and insights with 1M+ monthly readers: founders, law firm partners, general counsel and practising lawyers across the US, UK, EU and GCC.
Get featuredSubmit a press release

