Skip to main content

Mandamus and habeas (federal court)

When an agency will not act, or detention is unlawful, we take the case to federal court.

Some problems need a federal judge. A mandamus action asks a federal court to compel USCIS or another agency to decide a case that has been delayed unreasonably. A habeas corpus petition asks a federal court to review whether a person's detention is lawful. Both ask for a decision or a hearing, not for a particular outcome.

What is a mandamus lawsuit in immigration?

A mandamus action asks a federal judge to order USCIS or another agency to act on a case that has been delayed beyond a reasonable time. It does not ask the court to approve your application, only to require a decision.

When is it worth suing over a delay?

Courts look at how long your case has been pending, normal processing times, and what you have already done to follow up. Many people try case inquiries and congressional inquiries first. If those fail, a lawsuit can move a stalled case forward.

What is a habeas petition for ICE detention?

A habeas corpus petition asks a federal court to review whether a person's detention is lawful, for example when someone is held for a long time without a hearing, or without the proper legal basis.

What does the process look like?

We review your timeline and options, then file in the proper U.S. District Court. The government must respond, and many cases resolve once it does. We cannot predict timing, and results depend on the facts.

How it works

  1. Case review

    We review the delay or the detention, your history, and the law that applies.

  2. File in federal court

    We prepare and file in the proper U.S. District Court.

  3. Government response

    The agency or the government answers the filing.

  4. Resolution

    Many cases move forward once the agency is required to respond, or the court decides.

How we help

  • Evaluating whether federal court is the right step
  • Drafting and filing mandamus and habeas actions
  • Following the case through to a decision

When to talk to an attorney about federal court

  • Your application has been pending long past normal processing times.
  • You completed your interview and are still waiting for a decision.
  • A loved one has been detained for a long time without a hearing.
  • You have tried inquiries and nothing has changed.
  • Not sure what comes next, or your case has stalled? Our attorneys represent you before USCIS and the courts, work to move your case forward, and give you clear legal advice at every step.

Common questions

What is a writ of mandamus in immigration?

It is a federal lawsuit asking a judge to order USCIS or another agency to act on a case that has been delayed beyond a reasonable time.

How long can USCIS delay my case before I can sue?

There is no single number. Courts look at how long the case has waited, normal processing times, and the reasons for delay. We review your timeline.

Does a mandamus lawsuit work?

Often it gets a stalled case moving, because the agency has to respond. It does not guarantee approval, only a decision.

How much does it cost to sue USCIS?

A federal court filing fee applies in addition to attorney fees. We explain all costs at your consultation.

What is the difference between a mandamus and a case inquiry?

An inquiry asks the agency to look at your case, and a congressional inquiry asks an elected office to help. A mandamus is a lawsuit. We often recommend trying simpler steps first.

Can I sue if USCIS has not decided my naturalization after the interview?

In general, if USCIS does not decide an N-400 within 120 days after the interview, you may be able to ask a federal court to decide it. We can evaluate your timeline.

Can I sue over a delayed green card or administrative processing?

Possibly. Long administrative processing and unexplained delays are common reasons to consider federal court.

What is a habeas corpus petition for ICE detention?

It asks a federal court to review whether a person's detention is lawful, for example when someone is held too long without a hearing.

How long does a federal court case take?

It varies. Many cases move forward once the government must respond. We cannot predict the timing for your case.

Which federal court handles my case?

The U.S. District Court that covers where you live, or where the agency or detention facility is located. We handle the filing.

Reviewed by Oksana Specter on 10/28/26. This page is general information, not legal advice.

Talk to an attorney about your case.

Book a consultation and see the price before you pay.

Schedule a Consultation