Habeas corpus is a fundamental right that lets individuals challenge the legality of their detention before a federal court. For immigrants in ICE facilities, it can mean the difference between prolonged detention and release.
This post explains habeas corpus in immigration—its legal basis, application to detained noncitizens, key Supreme Court decisions, and the filing process. Whether you are a detainee, a family member, or an advocate, this guide delivers essential information on understanding and using habeas corpus in immigration detention.
The Constitutional Right of Habeas Corpus
The right to habeas corpus is in the U.S. Constitution. Article I, Section 9, Clause 2, called the Suspension Clause, states:
“The Privilege of the Writ of Habeas Corpus shall not be suspended, unless, in Cases of Revolt or Invasion, the public Safety may require it.”
“Habeas corpus” means “you shall have the body.” It makes the government bring a detained person before a court and explain the detention. The Supreme Court has called habeas corpus the primary means of reviewing executive detention, especially in immigration cases.
28 U.S.C. § 2241 lets federal courts grant habeas writs for people held by or under U.S. authority, or in violation of federal law. Immigration detainees often use this law to ask federal courts to review their detention.
Historical Background and Legal Framework
Habeas corpus originated in 13th-century England and was included by the Founders among the Constitution’s core rights.
Federal courts historically reviewed removal and detention proceedings via habeas corpus. Major changes came with IIRAIRA (1996) and the REAL ID Act (2005).
How Habeas Corpus Applies Specifically to Immigration Detention
Because the REAL ID Act preserved habeas corpus for detention cases, 28 U.S.C. § 2241 remains the primary means for noncitizens to seek federal court review of their detention. District courts can consider habeas petitions seeking release from detention.
- Seek a bond hearing before an immigration judge.
- Challenge the conditions of confinement.
- Challenge enforcement actions when the law under § 242 of the INA does not offer review options.
It is important to know which law allows the government to detain someone. The available habeas corpus arguments depend on the specific detention authority used.
The Four Main Statutory Bases for Immigration Detention
8 U.S.C. § 1226(a) – Discretionary Detention
The government can detain noncitizens while they wait for removal. Bond hearings are allowed, but the noncitizen must show they qualify for release.
8 U.S.C. § 1226(c) – Mandatory Detention
Certain noncitizens with specific criminal convictions must stay in detention. They do not get a traditional bond hearing. In Demore v. Kim, 538 U.S. 510 (2003), the Supreme Court said the law is constitutional on its face, but left room for challenges when the law is applied to a particular case.
8 U.S.C. § 1225(b) – Arriving Aliens
Noncitizens seeking entry or caught soon after entry can be detained under this rule. The main way out is release by DHS (parole).
8 U.S.C. § 1231 – Post-Order Detention
After a final removal order, the government has 90 days to remove the person. If the person is not removed in time, DHS must check if removal will happen soon.
Grounds for Filing a Habeas Petition in Immigration Cases
According to the National Immigration Litigation Alliance’s practice advisory, common grounds for detention-based habeas petitions include:
- Post-removal order indefinite detention where removal is not reasonably foreseeable (Zadvydas v. Davis, 533 U.S. 678 (2001))
- If someone is held for a long time before removal and the detention is arbitrary, disproportionate, indefinite, or punitive, this can be grounds for a habeas petition.
- Failure to consider the ability to pay or options to detention in custody determinations
- Habeas petitions may challenge mandatory detention if removability is strongly disputed or if detention has lasted too long.
- Agency error in making a dangerousness determination (Martinez v. Clark, 144 S. Ct. 1339 (2024))
- Conditions of confinement that violate constitutional due process standards
Habeas cannot reach everything. Laws such as 8 U.S.C. § 1252 limit federal court review of discretionary bond and parole decisions, removability, and execution of removal proceedings. Key takeaway: Habeas is powerful but not unlimited—know its specific scope and limits before filing.
The Role of Federal Courts in Reviewing Detention Challenges
Federal district courts are the primary venue for habeas petitions challenging immigration detention. When someone files a petition, the court can order the government to explain why detention is legal. Under 28 U.S.C. § 2243, the government must answer within 3 days. The court may decide based on written records or hold a hearing.
The court can order release, a bond hearing, or dismiss the petition. Courts of appeals review these decisions. The rules governing proof at bond hearings and the assessment of long detention vary by region, especially after Jennings v. Rodriguez.
Case Studies: Key Supreme Court Rulings
Several landmark Supreme Court decisions have defined the scope of habeas corpus in the immigration space. Each one matters in how federal courts evaluate detention challenges today. Key takeaway: Knowing these cases is key for understanding how courts currently review detention challenges.
Zadvydas v. Davis, 533 U.S. 678 (2001)
The Supreme Court decided that post-removal detention under 8 U.S.C. § 1231 is unconstitutional if removal cannot happen soon. The Court set a six-month limit before due process concerns develop. This rule is important for fighting long-term detention.
INS v. St. Cyr, 533 U.S. 289 (2001)
On the same day as Zadvydas, the Court said blocking federal court review of pure questions of law in removal cases would violate the Constitution. This decision helps keep some federal review even when habeas is restricted.
Demore v. Kim, 538 U.S. 510 (2003)
The Court upheld mandatory detention under § 1226(c), but allowed for constitutional challenges in specific cases.
Jennings v. Rodriguez, 583 U.S. 281 (2018)
This decision, by law, made it harder to get regular bond hearings. The Court said people detained under § 1226(a) do not have a legal right to bond hearings every six months. People held under § 1226(c) or § 1225(b) do not, by law, get bond hearings after long detention. The Court sent the constitutional questions back to the lower court to answer. After Jennings, lawyers use due process arguments—claiming the detention is arbitrary, too long, or punitive—to seek relief.
DHS v. Thuraissigiam, 591 U.S. 103 (2020)
This case mostly stopped habeas review for the quick removal of people caught soon after entry. It limits the review to the legal rights set out by law for entry.
Nielsen v. Preap, 586 U.S. 392 (2019)
The Court held that mandatory detention under § 1226(c) applies even if ICE waits years after a criminal release. But courts can still allow case-by-case due process challenges.
Step-by-Step Overview of the Habeas Corpus Filing Process
If you or someone you are assisting is considering a habeas petition, here is a practical overview of what the process looks like, based on guidance from the National Immigrant Justice Center:
Step 1 – Determine jurisdiction and venue
For people in detention, file in the federal district court where they are actually held. Jurisdiction is based on where the person is held when you file. This is important if ICE moves the detainee after filing.
Step 2 – Identify the proper respondent
You must name the warden or person in charge of the detention center as the main respondent. It is also good to name the ICE Field Office Director, the DHS Secretary, and the U.S. Attorney General.
There is no strict legal rule that you must finish every administrative step before filing under § 2241. But courts may require you to try. Courts can skip this rule if it would be useless, not enough, or cause harm if you wait.
The petition must state the facts about detention.
- Name the custodian
- The petition must identify the constitutional or federal law issues.
- Specify the relief requested (release or a bond hearing, with the burden of proof on the government)
- Include supporting documents—bond hearing transcripts, immigration judge decisions, medical records, and declarations from attorneys or others familiar with the case.
The filing fee is $5. Always consult the court’s local rules and any standing orders from the assigned judge.
Step 5 – Await the government’s response
The government will typically oppose the petition or move to dismiss. The petitioner then files a traverse (reply). The case may be decided on the papers or set for oral argument.
Common Challenges and Legal Obstacles for Non-Citizens
Habeas litigation in the immigration context is not without major obstacles:
- Jurisdiction-stripping provisions in 8 U.S.C. § 1252 limit what courts may review
- Circuit splits on the burden of proof at bond hearings and on prolonged detention standards create geographic disparities in outcomes.
- DHS transfers between detention facilities can complicate venue and force re-filing
- Access to counsel is not guaranteed in civil immigration proceedings, causing many individuals in custody to negotiate complex federal litigation without representation.
- Thuraissigiam’s scope raises pending questions about the constitutional floor for habeas review in expedited removal contexts.
The Impact of Mandatory Detention vs. Discretionary Release
Mandatory detention under § 1226(c) removes the immigration court’s authority to set bond. For individuals with older convictions—sometimes offenses that occurred years or even decades ago—this can result in prolonged confinement pending removal proceedings with no individualized assessment of flight risk or danger. Post-Jennings, courts applying substantive due process analysis have examined the length of detention, the likely duration of future proceedings, the conditions of confinement, and the government’s responsibility for delays to determine whether continued detention has become unconstitutional.
By contrast, individuals detained under § 1226(a) are entitled to bond hearings, though the burden of proving eligibility for release falls on them. Advocates continue to litigate whether due process requires the government to bear the burden of proof by clear and convincing evidence in prolonged detention cases—with some circuits agreeing and others declining to so hold.
Preserving Due Process in the Immigration System
Habeas corpus is not a technicality. It is one of the oldest legal safeguards in our constitutional framework—a check on government power that exists precisely for moments when individual liberty is at stake. For noncitizens detained in the immigration system, it remains one of the few mechanisms to challenge the lawfulness of their confinement before an independent federal judge.
The law in this area is complex, actively litigated, and varies meaningfully by circuit. Anyone facing immigration detention—or supporting someone who is—should seek qualified legal assistance as early as possible. The following resources provide substantive guidance:
- National Immigration Litigation Alliance – Practice Advisory on Habeas Corpus in Immigration Cases
- American Immigration Council – Judicial Review Provisions of the REAL ID Act
- 28 U.S.C. § 2241 – Power to Grant Writ (Cornell LII)
- U.S. Constitution, Article I, Section 9, Clause 2 – Suspension Clause (Congress.gov)
- National Immigrant Justice Center – Habeas Corpus Litigation Guide
Every detained individual is entitled to access to a court that can review the legality of their confinement. Habeas corpus makes that possible—and understanding it is the first step toward using it effectively.


