When someone is taken into immigration custody and held without clear answers, families are often left confused and anxious. Days can turn into weeks with little information about what will happen next. It may feel like there is no way to challenge the detention or speed up the process.
In some cases, filing a habeas corpus petition in federal court may be the appropriate step. Working with a habeas corpus lawyer serving San Francisco can help determine whether the detention is lawful and whether court intervention is possible.
At Mendoza Law, we handle immigration detention matters as part of our broader immigration litigation practice. As San Francisco immigration lawyers with decades of combined legal experience, we take a strategic approach to cases involving unlawful or prolonged detention. We evaluate each situation carefully and take action only when there is a strong legal basis.
What Is a Habeas Corpus Petition?
A habeas corpus petition is a legal action filed in federal court asking a judge to review whether someone is being detained lawfully. The phrase “habeas corpus” means “you shall have the body,” and it requires the government to justify why a person is being held.
In immigration cases, detention may occur after an arrest by Immigration and Customs Enforcement (ICE), during removal proceedings, or after a prior removal order. Not all detention is unlawful. However, if the government cannot provide proper legal authority or if detention has become unreasonably prolonged without meaningful review, federal court oversight may be available.
A habeas corpus attorney serving San Francisco evaluates the facts of the detention, the person’s immigration history, and the legal basis cited by the government before recommending whether to file a petition.
For a free case evaluation with a habeas corpus lawyer serving San Francisco, call +1 (202) 933-3379
When Can Habeas Corpus Be Used in Immigration Cases?
Habeas corpus is not used in every detention case. It is typically considered when other remedies have failed or when detention raises serious legal concerns that require immediate review.
Federal courts have authority under 28 U.S.C. § 2241 to review certain immigration detention matters. This statute allows individuals to challenge the legality of their custody in a federal district court. For example, if detention continues without a required bond hearing, or if removal is not reasonably foreseeable, habeas relief may be appropriate.
Each situation must be evaluated carefully. Filing a petition without a solid legal foundation can delay other strategies. As a San Francisco habeas corpus law firm, we conduct a detailed review of court records, detention history, and prior immigration proceedings before moving forward.
San Francisco Habeas Corpus Lawyer Near Me +1 (202) 933-3379
How the Habeas Process Works
A habeas corpus petition is filed in federal court, not immigration court. This means a federal judge, rather than an immigration judge, reviews the legality of the detention. The government must respond in writing and explain the legal authority for holding the individual.
The court may schedule hearings, request additional briefing, or issue a written decision. In some cases, the government agrees to a bond hearing or release after the petition is filed. In others, the judge reviews the arguments and issues an order requiring further action.
This process requires careful drafting and strong legal reasoning. We gather detention records, prior immigration filings, and any relevant documentation. We then present a clear explanation of why continued detention violates federal law or constitutional protections.
Click to contact our San Francisco Immigration Lawyers today
Why Strategic Review Matters in Detention Cases
Detention cases move quickly, and emotions understandably run high. Families often want immediate action, but filing the wrong motion or petition can create delays or limit future options. A careful legal review ensures that the right step is taken at the right time.
Immigration detention is not the same in every case. Different sections of federal law apply depending on a person’s immigration history, prior removal orders, and any criminal record. Some individuals may qualify for a bond hearing, while others may face mandatory detention rules. Understanding these differences is essential before filing in federal court.
As habeas corpus lawyers serving San Francisco, we evaluate the legal basis for detention before recommending court action. We explain your options clearly and outline possible outcomes so you can make informed decisions. If habeas relief is appropriate, we proceed with a focused strategy designed to present a strong and well-supported argument.
Complete a Free Case Evaluation form now
Speak With a San Francisco Habeas Corpus Attorney
If you or a loved one is being held in immigration detention and you believe the custody is unlawful or unreasonably prolonged, you may have legal options. A habeas corpus attorney serving San Francisco can review the detention and determine whether federal court action is appropriate.
At Mendoza Law, we have served over 100,000 clients and built a team of more than 1,400 employees dedicated to strategic immigration advocacy. We offer free consultations to evaluate whether your case meets our selective standards.
Contact us today to discuss your situation and learn whether a habeas petition is the right next step. The fight continues.
Call or text +1 (202) 933-3379 or complete a Free Case Evaluation form

