HABEAS CORPUS RELIEF – CHALLENGING UNLAWFUL DETENTION!
- Kerry W. Bretz
- Feb 10
- 7 min read
In today’s enforcement environment, detention can happen fast—at an ICE check‑in, after a court appearance, during a traffic stop, or without warning. In many cases, families and counsel are trying to locate someone while the person is already being moved through ICE’s rapid transfer network.
When detention is legally questionable—or when due process has been skipped—one of the most powerful emergency tools available is a federal habeas corpus petition (28 U.S.C. § 2241), sometimes paired with a request for an emergency Temporary Restraining Order (TRO).
The immediate objective is often practical:
Get a federal judge involved quickly—before ICE transfers someone out of New York City (or another major metropolitan region) to a distant facility where urgent relief may be harder to obtain.
Our firm has litigated federal habeas cases for decades, including in the Southern District of New York. Two matters—one from the 1990s and one from this year—show what can be possible when counsel acts quickly and the facts and law support emergency relief.
What habeas corpus does in the immigration detention context
A habeas corpus petition is not an “appeal of a deportation case.” It is a challenge to the legality of the custody itself.
In plain language, a habeas petition asks a federal court to require the government to explain—under the Constitution and federal law—why a particular person is being held and whether that detention is lawful.
Depending on the facts, a habeas petition may seek:
Immediate release
A bond hearing / custody redetermination
An order requiring due process
An order preserving the court’s ability to act before transfer
An order preventing transfer out of the district while the court can hear the case
Not every case qualifies, and emergency relief is never automatic. But when detention is unlawful or procedurally defective, habeas is often the most direct way to seek federal judicial review on an emergency timeline.
What a TRO does, and why it can matter in the first 24–72 hours
A TRO is an emergency court order designed to preserve the status quo long enough for the court to hear the case. In detention litigation, a TRO request often focuses on preventing an action that could make meaningful review harder—such as:
Transfer out of the district
Removal before the court can rule
Retaliatory or disruptive custody changes
ICE transfers can happen quickly. When a person is moved, the practical ability to litigate on an emergency basis can change overnight.
Why timing and geography matter
In immigration detention, the where often affects the how fast.
When a person is detained in or near New York City, counsel may be able to file quickly in federal court, appear on short notice, and preserve local jurisdiction before ICE moves the person elsewhere.
If someone is transferred to a distant detention center—often in Texas or Louisiana—habeas may still be possible, but it may become slower, more logistically difficult, and more legally complex.
The practical takeaway is simple:
If a case is going to be an emergency federal filing, time is a case factor.
Case study #1 (S.D.N.Y. 1996): habeas forced due process and rejected mandatory detention as applied
In St. John v. McElroy, 917 F. Supp. 243 (S.D.N.Y. 1996), a lawful permanent resident was detained by the legacy INS while contesting her case. The court held that the mandatory detention statute at issue was unconstitutional as applied to a class of returning lawful permanent residents who retained due process rights, and the litigation forced meaningful process.
The broader point remains relevant:
Even when immigration detention is labeled “civil,” constitutional due process still applies. And habeas is often the mechanism that forces the government to justify detention in federal court.
Case study #2 (S.D.N.Y. 2026): habeas + TRO stopped transfer and resulted in immediate release
In Martinez v. Joyce (S.D.N.Y.), our client was detained in New York and faced a serious risk of being moved quickly through the transfer system.
Because transfers can happen fast, we filed:
A federal habeas petition, and
An emergency request for a TRO to prevent transfer while the federal court could hear the case.
1) The court entered emergency relief to prevent transfer
The court granted emergency relief, enjoining ICE from removing Mr. Martinez outside of the Southern District of New York until the court could conduct a hearing.
2) The court granted the habeas petition and ordered immediate release
On January 8, 2026, Judge George B. Daniels granted the habeas petition and ordered that Mr. Martinez be released immediately.
A key finding was basic due process: the government offered no justification for detaining him without an initial custody determination and without the opportunity for a bond hearing, and it did not contend he was a flight risk or danger on the record presented to the court.
3) “Release” should mean meaningful liberty—not a new form of custody
After release, ICE sought to impose electronic monitoring/restraints. The court issued a follow‑up order stating that release “shall be without any physical or electronic monitoring or restraint condition” and that such devices “shall be removed.”
For families, this is important: in some cases, the legal work does not end at the jail door. Federal court litigation may also be necessary to ensure compliance with the purpose and substance of a release order.
A major development in Texas and Louisiana: the Fifth Circuit’s Buenrostro‑Mendez decision
Transfers to Texas and Louisiana can have legal consequences, not just logistical ones.
On February 6, 2026, the U.S. Court of Appeals for the Fifth Circuit (covering Texas, Louisiana, and Mississippi) issued a published decision in Buenrostro‑Mendez v. Bondi.
In that decision, the Fifth Circuit addressed whether certain noncitizens who are deemed “applicants for admission” (including individuals who crossed the border without inspection) are subject to mandatory detention under 8 U.S.C. § 1225(b)(2)(A)—and whether they remain eligible for discretionary bond under 8 U.S.C. § 1226(a). The court concluded the government’s position was correct and reversed district‑court orders requiring bond hearings or release in the cases before it.
Whether other jurisdictions align with that interpretation is an evolving question. But inside the Fifth Circuit, this decision is now binding precedent.
What that can mean in real life: A transfer into Texas or Louisiana may change the legal landscape for custody arguments. That is another reason why, when emergency federal litigation is appropriate, acting before transfer can be critical.
A new service many families may need now: “pre‑detention” habeas/TRO readiness
Because detention often happens at predictable moments—ICE check‑ins, interviews, hearings, or other appointments—some clients now choose to retain counsel in advance so that, if detention occurs, the case is positioned for rapid action.
We call this “pre‑detention” habeas/TRO readiness: a planning‑and‑preparation approach designed to reduce delay in the first 24–72 hours after detention, when transfer risk is often highest.
Depending on the situation, readiness planning may include:
Collecting essential records ahead of time
Identifying legal and procedural issues
Preparing factual declarations and exhibits that emergency filings often require
Ensuring family members know what information counsel will need immediately (A‑number, custody location, medical information, etc.)
Where appropriate, preparing a habeas petition and TRO papers so they can be filed quickly if detention occurs
This is not about panic, and it is not a guarantee of any outcome. It is about being realistic in a system where transfers and custody decisions can move quickly.
What noncitizens and families can do now to be ready
If you or a loved one is at risk of detention, preparation helps. Consider:
Keep immigration documents organized and accessible (A‑number, prior orders, receipts, work permits, FOIA records if any).
Keep proof of identity and lawful status of family members (birth certificates, marriage certificates, proof of U.S. citizen/LPR relatives).
Gather proof of community ties (work history, tax filings, school records, letters of support).
Maintain a current medication list and key medical records.
Ensure a trusted person can access documents immediately.
Memorize at least two phone numbers (people often lose access to phones while detained).
Keep evidence addressing flight‑risk / danger factors where relevant (stable address, caregivers, employment, medical care, etc.).
Questions families ask about emergency habeas and TRO filings
1) Is habeas corpus the same thing as appealing a removal order?
No. A habeas petition challenges the lawfulness of custody (detention). It is different from an appeal of the immigration judge’s decision or a petition for review in the court of appeals. In some situations, habeas can be filed while immigration proceedings are still pending.
2) Can a federal judge stop an ICE transfer?
In appropriate cases, a federal court may enter emergency relief to preserve its ability to hear the case—such as an order preventing transfer out of the district while the court conducts a hearing. Whether that relief is available depends on the facts, posture, and the court.
3) How fast can a habeas/TRO move?
Sometimes very fast—measured in days, or even hours—when the record supports emergency relief and the court can schedule prompt review. But speed varies widely by jurisdiction, judge assigned, factual record, and legal posture.
4) What information does a lawyer need immediately after detention?
Typically, counsel will need: the person’s full name, A‑number, location/custodian information (where they are being held), any upcoming hearing dates, immigration history, criminal history (if any), medical issues, and key documents that show eligibility for release and due‑process concerns.
5) If ICE transfers someone to Texas or Louisiana, is habeas still possible?
After the precedent decision of Buenrostro‑Mendez v. Bondi in the Fifth Circuit Court of Appeals, it is far less likely. Transfer can affect venue, logistics, and—depending on the legal issue—what controlling precedent applies. That is why acting fast or in advance is crucial.
6) What is the difference between detention under 8 U.S.C. § 1225 and § 1226?
In general terms, § 1226 is often associated with discretionary detention (where bond may be available in many cases), while § 1225(b)(2)(A) is a mandatory detention framework for “applicants for admission” (where bond may not be available under that statute). The correct statutory framework can be heavily disputed and fact‑dependent.
7) If someone is “released,” can ICE still impose electronic monitoring?
Sometimes ICE attempts to impose monitoring conditions even after a release order. Whether that is permissible depends on the legal basis for the release, the terms of the order, and the posture of the case. In some situations, additional litigation may be needed to enforce meaningful liberty. That is what we did in Martinez v Joyce.
8) Does reading this blog or contacting the firm create an attorney‑client relationship?
No. Reading this post (and even contacting the firm) does not create an attorney‑client relationship unless and until there is a signed engagement agreement after a full consultation.
The takeaway
Habeas corpus is not abstract theory. In appropriate cases, it is a federal court tool that can require the government to justify detention—and can lead to rapid relief, including orders preventing transfer and orders of release.
But timing and geography matter. When someone is detained in the New York region, counsel may be able to seek emergency federal review before transfer. Once a person is moved to a distant facility—especially in jurisdictions where detention law is more restrictive—urgent relief can become harder.
If detention is a real risk, it is worth speaking with experienced counsel early—before the system moves faster than the case can.
This post is general information, not legal advice. Every case is fact‑dependent. Reading this post does not create an attorney‑client relationship. Prior results do not guarantee a similar outcome.
Comments