Habeas Corpus in Immigration Detention: When and How to Challenge Unlawful ICE Detention

Lately, there has been a lot of news surrounding the U.S. Immigration and Customs Enforcement (ICE) and the way they treat people, especially immigrants. There have been numerous concerns over aggressive tactics, the separation of families, and alleged human rights abuses. There have been protests about ICE, and people have even asked to abolish ICE.

ICE is a federal law enforcement agency that is responsible for identifying, investigating, and deporting undocumented immigrants or those violating immigration laws within the United States. ICE can be aggressive, arresting, and detaining people for unlawful reasons.

Whether or not a victim is an immigrant, they may be concerned about their legal rights. They should understand that not every action ICE takes is legal. If a person ends up in immigration detention, they may be able to challenge it. 

What is Habeas Corpus?

Habeas corpus prevents unlawful detainment. The term comes from Latin, meaning “you shall have the body.” It is a legal action that allows a person in custody to ask a court to review whether their detention is lawful. Habeas corpus ensures that someone cannot be detained illegally.

Habeas corpus is an important individual freedom that prevents governments from:

  • Holding people indefinitely without charges.
  • Detaining someone without evidence or legal justification.
  • Abusing power through unlawful imprisonment.

Habeas corpus is appropriate when:

  • Detention is excessively long.
  • Mandatory detention is unlawful.
  • Bond hearings are denied.
  • There are severe medical/safety concerns in detention.

As an example, if someone is arrested but never formally charged, they (or their lawyer) can file for habeas corpus to challenge the detention. If the court finds no legal basis, the person must be released.

The focus is not necessarily on winning the immigration case but on challenging the legality of being held in custody. The success rate is high. In 2025, federal judges ruled in favor of detained immigrants in roughly 97% of decided habeas corpus cases, making it a highly effective tool against prolonged ICE detention.

However, it may not work for everyone. Individuals usually need to have exhausted administrative remedies (such as appealing to the Board of Immigration Appeals) before filing a habeas petition in federal court. Federal courts can order an immediate release, set a bond amount, or order a bond hearing

Habeas corpus has come under scrutiny during President Donald Trump’s administration, with the president arguing that these legal protections have slowed efforts to carry out large-scale deportations. In response, he invoked the long-standing Alien Enemies Act, a statute that permits the federal government, during times of war, to quickly detain and remove certain noncitizens deemed enemies of the United States without affording them the usual opportunity to challenge their detention or deportation in court.

What is Considered Unlawful ICE Detention?

Here are the most common situations that can make ICE detention unlawful:

  • No valid legal basis. ICE generally must follow the Fourth Amendment, which protects against unreasonable seizures. Arresting or detaining someone without a valid warrant, consent, or probable cause can be illegal. Entering a home without a judicial warrant is often unlawful
  • Holding someone too long. Detention can become unlawful if it lasts too long without justification. Keeping someone locked up indefinitely with no clear timeline for deportation violates due process.
  • No bond hearing or due process. Many detainees are entitled to a bond hearing before an immigration judge and a chance to challenge their detention. If ICE denies this without legal justification, it may be unlawful
  • Ignoring court orders. Detention becomes unlawful when a judge orders release, but ICE continues to hold the person or transfers them to avoid complying with a ruling. Courts have repeatedly found such actions illegal in thousands of cases.
  • Violations of basic rights. Detention may also be unlawful if it involves:
    • Denial of access to a lawyer.
    • Inhumane or unsafe conditions.
    • Lack of medical care or communication.

How to Challenge Unlawful ICE Detention

Challenging unlawful ICE detention usually requires quick action and the right legal strategy. The goal is to move the case out of ICE’s control and into federal court review. Here is how it is typically done:

  • Identify why the detention is unlawful. Start by determining what’s wrong with the detention. This step is critical because your legal challenge must point to a specific violation of law or constitutional rights.
  • Hire an immigration attorney. Unlike criminal cases, the government does not provide free lawyers in immigration detention. Delays can make cases harder to win, so seek legal help quickly. An attorney can:
    • Evaluate legal violations.
    • File the correct motions quickly.
    • Represent the detainee in court.
  • Request a bond hearing. If eligible, a lawyer can ask an immigration judge to set a bond or order release while the case is pending. If ICE denies a bond improperly, that denial itself can be challenged.
  • File a writ of habeas corpus. This is the most powerful tool for unlawful detention. It is filed in federal court and asks a judge to review the legality of the detention. If ICE cannot justify the detention, the court can order release.
  • Seek emergency relief. In urgent cases, attorneys may file a temporary restraining order or a request for immediate release. This can speed up the process when someone is being wrongfully held.
  • Avoid signing documents without legal advice. Detainees are sometimes pressured to sign voluntary departure forms and waivers of rights. Signing these can limit or eliminate your ability to fight detention or deportation.

Contact Us Today

Unlawful detainment is never OK. Hiring an immigration lawyer is crucial to protecting your legal rights in cases like these. 

Texas immigration lawyer Oscar Mendoza has the knowledge and experience to guide you through the tough times. With a deep understanding of the intricacies of deportation and immigration court proceedings, I go above and beyond to ensure justice. Contact my office today to schedule a consultation. Call (469) 444-8544 or fill out the online form.