Habeas Corpus and Immigration Detention: How to Challenge being held by ICE
What is a Habeas Petition in an Immigration Case?
A habeas petition is a way to ask a federal judge to decide whether the government has the legal authority to keep someone in immigration detention.
The formal term is a petition for a writ of habeas corpus. The phrase is Latin, but the idea is straightforward: the government should not be able to take away a person’s freedom without having a lawful reason to do so.
In an immigration case, a person being held by Immigration and Customs Enforcement (ICE) may be able to file a habeas petition in federal court under 28 U.S.C. § 2241 to challenge the legality of their detention. Federal courts describe these cases in much the same way: a § 2241 petition can be used by someone who believes they are being unlawfully held in immigration custody.
A habeas petition is not the right solution for every person in immigration detention. But in the right case, it can be one of the most powerful tools available to challenge detention and restore a person’s freedom.
When can Habeas Corpus be used to Challenge Immigration Detention?
There is no single type of immigration habeas case.
Whether a habeas petition makes sense depends on why the person is detained, which immigration statute the government says authorizes the detention, how long the detention has lasted, whether a bond hearing is available, and what has happened in the immigration case.
Habeas petitions may become relevant when, for example:
- the government claims a person must remain detained without the opportunity for a bond hearing;
- detention has continued for an unusually long period;
- a person remains detained even though removal from the United States may not be reasonably foreseeable;
- the government is applying the wrong detention statute;
- continued detention may violate the Constitution or federal immigration law.
Federal courts continue to receive § 2241 petitions from people challenging immigration detention on these kinds of statutory and constitutional grounds.
The important point is that being detained by ICE does not necessarily mean there is no way to challenge the detention. If you or a loved one is being held in immigration detention and want to understand whether there may be a legal basis to challenge it, contact us to discuss the circumstances of the case.
Being told You are “Not Eligible for Bond” may not End the Question
This distinction has become especially important in recent immigration litigation.
A person may be told by ICE or an immigration judge that the law requires them to remain detained and that an immigration judge has no authority to give them a bond hearing.
Sometimes that is correct.
Sometimes the legal basis for mandatory detention itself can be challenged in federal court.
That is exactly the issue that has generated significant habeas litigation over the government’s interpretation of immigration detention statutes. In September 2026, for example, the U.S. Court of Appeals for the Fourth Circuit affirmed habeas relief for two immigrants who had been detained without bond after the government changed its interpretation of which detention statute applied to people who had entered the United States without inspection. The court concluded that the statute permitting bond hearings applied to them.
This is why the answer to “Can I get a bond hearing?” sometimes requires looking beyond immigration court.
What can a Federal Judge do in a Habeas Case?
A federal judge reviewing a habeas petition is examining the legality of the person’s detention.
Depending on the facts and the legal problem, successful habeas litigation may result in relief such as:
- an order requiring the government to provide a bond hearing;
- an order correcting the legal basis under which someone is being detained;
- or, in some cases, release from custody.
But filing a habeas petition does not automatically mean the person will be released.
The precise remedy depends on why the detention is unlawful and what the court determines is necessary to correct that problem.
That distinction matters. In a recent Fourth Circuit case involving BPR client Oscar Enrique Lopez Garcia, the habeas litigation established that the applicable detention statute entitled him to a bond hearing. The bond hearing then resulted in his release while his immigration proceedings continued.
Is a Habeas Petition the same as asking for an Immigration Bond?
No. A bond hearing generally takes place before an immigration judge. The immigration judge considers whether a person may be released from detention while the immigration case continues and may evaluate issues such as danger to the community and risk of flight.
A habeas petition, by contrast, is generally filed in a United States District Court and asks a federal judge whether the detention itself is lawful.
One way to think about the difference is:
A bond case may ask, “Should this person be released?”
A habeas case may ask, “Does the government have the legal authority to detain this person in this way?”
Sometimes the purpose of the habeas case is to establish that the person has a right to the bond hearing the government has refused to provide.
Does a Habeas Petition Challenge the Deportation Case?
Usually, no. This is one of the most important distinctions to understand.
A habeas petition challenging immigration detention generally focuses on custody — whether the government may legally continue holding the person. It does not ordinarily decide whether that person ultimately wins asylum, receives a green card, defeats removal, or otherwise has the right to remain permanently in the United States.
Likewise, a habeas petition generally is not the way to challenge a final removal order. Federal court materials specifically distinguish § 2241 challenges to unlawful immigration detention from challenges to final removal orders, which ordinarily proceed through a petition for review in a federal court of appeals.
A person can therefore have two legal fights happening at the same time:
the immigration case, which determines whether the person can remain in the United States; and
the detention case, which determines whether the government can keep that person locked up while those issues are being decided.
That distinction can be confusing, but it is critical.
What if someone has been Detained for a Long Time?
The length of detention can matter, but there is no universal rule that says every immigrant must be released or receive a bond hearing after a particular number of months.
Different detention statutes and different circumstances produce different legal standards.
For example, a person who has already received a final order of removal may raise a different habeas claim if detention continues and removal is not reasonably foreseeable. The Supreme Court’s decision in Zadvydas v. Davis established important limits on potentially indefinite post-removal-order detention. Federal courts continue to hear habeas petitions raising that issue.
But the Supreme Court has also held that one particular immigration detention statute cannot simply be read to require automatic bond hearings after six months. That is why the circumstances of the individual case — and the particular legal authority under which the person is detained — matters much more.
Where is an Immigration Habeas Petition Filed?
Immigration habeas petitions under 28 U.S.C. § 2241 are filed in federal district court, not immigration court.
Which district court is the correct one can depend on where the detained person is being held and other jurisdictional considerations. This can become complicated when ICE transfers people from one detention center to another.
Several federal district courts now maintain specific procedures for the growing volume of § 2241 immigration habeas cases, underscoring that these are federal civil cases separate from the underlying proceedings in immigration court.
Because filing in the wrong court or naming the wrong respondent can create significant problems, determining where and how to file is an issue that should be evaluated carefully. The experienced team at BPR Immigration can help, contact us today!
Because filing in the wrong court or naming the wrong respondent can create significant problems, determining where and how to file should be evaluated carefully. The experienced team at BPR Immigration can help assess the appropriate next steps. Contact us to discuss the circumstances of the case.
How quickly can a Habeas Case Move?
There is no universal timeline. Habeas cases can sometimes move faster than ordinary federal litigation because the case concerns a person’s physical liberty. But timing depends on the court, the legal issues, whether emergency relief is requested, the government’s response, and whether the case presents questions already resolved in that jurisdiction.
Some courts facing large numbers of immigration habeas petitions have adopted special scheduling procedures to manage these cases more quickly.
Families should therefore be cautious about anyone promising that a habeas petition will produce release within a specific number of days.
Can someone File a Habeas Petition Without a Lawyer?
People in immigration detention can file habeas petitions pro se, meaning without an attorney. Federal courts even publish § 2241 forms for people challenging immigration custody.
But that does not mean these cases are simple.
Immigration habeas litigation can involve several overlapping areas of law:
- immigration detention statutes;
- federal habeas law;
- constitutional due process;
- federal court jurisdiction;
- changing appellate precedent;
- and the procedural history of the person’s immigration case.
The difficult question is often not simply how to file a habeas petition, but what legal argument makes the detention unlawful.
How is Habeas Corpus different from a Mandamus Lawsuit?
Both are federal court actions, but they solve very different problems.
A habeas petition challenges unlawful detention.
A mandamus lawsuit generally asks a federal court to require a government agency to act when an immigration application or petition has been unreasonably delayed.
If USCIS has failed to decide a long-pending green card or naturalization case, mandamus may be relevant. If ICE is unlawfully holding someone in detention, habeas may be the relevant federal court remedy.
BPR handles both types of federal immigration litigation, but they should not be confused. BPR’s existing federal-court resources explain how mandamus and INA 1447(b) litigation can address agency delays.
When should a Family Speak with an Immigration Habeas Lawyer?
If someone you love has been taken into ICE custody, the first days can be confusing. Families are often trying to determine where the person is being held, whether they can receive bond, why ICE says detention is mandatory, and what will happen to the underlying immigration case.
A habeas petition is not appropriate in every detention case. But if the government is refusing a bond hearing, detention appears legally improper, or custody is continuing for an unusually long time, federal court may need to be considered.
At Benach Pitney Reilly Immigration, our attorneys handle immigration cases in both immigration court and federal court. We have represented detained immigrants in habeas litigation challenging the government’s authority to hold them and have successfully obtained bond hearings for clients.
If you or a loved one is being held in immigration detention and you want to understand whether there is a legal way to challenge that detention, contact us to discuss the circumstances of the case.