
If you’ve been waiting months, or years, for USCIS to act on your immigration application, you know the frustration. You call the contact center and hear “your case is still pending.” You submit service requests that go nowhere. You contact your congressperson’s office and nothing changes.
Short answer: a writ of mandamus is a federal lawsuit, filed under 28 U.S.C. § 1361 and usually paired with an Administrative Procedure Act claim, that asks a judge to order USCIS or another agency to decide an application it has unreasonably delayed. It cannot force an approval. If the agency decides the case while the lawsuit is pending, the lawsuit is dismissed as moot.
In this guide, we explain what a mandamus action is, when it applies (I-485, N-400, I-130, I-140, asylum and consular cases), how courts decide whether a delay is unreasonable, what a demand letter to USCIS does, what the case costs, how long it takes, and what to expect once a lawsuit is filed.
Compare your options: Immigration case delayed? Case inquiry, Ombudsman, congressional help or a mandamus lawsuit
What Is a Writ of Mandamus in Plain English?
A writ of mandamus is a court order that compels a government agency or official to perform a duty they are legally required to carry out. The word “mandamus” comes from Latin, meaning “we command.” When a federal court issues a writ of mandamus, it is commanding the government to act.
In the immigration context, a mandamus lawsuit is filed in U.S. federal district court under 28 U.S.C. § 1361, which gives district courts jurisdiction to “compel an officer or employee of the United States or any agency thereof to perform a duty owed to the plaintiff.” The lawsuit names the government officials responsible for your delay, typically the USCIS director, the Secretary of Homeland Security, and the director of the relevant field office or service center.
A mandamus action does not ask the court to approve your application. It asks the court to order the government to make a decision, approve or deny, rather than leave your case in a queue indefinitely.
How Is Mandamus Different From an APA Claim?
Most mandamus lawsuits also include a claim under the Administrative Procedure Act (APA). Two APA provisions do the work: 5 U.S.C. § 555(b) says that “within a reasonable time, each agency shall proceed to conclude a matter presented to it,” and 5 U.S.C. § 706(1) tells a reviewing court to “compel agency action unlawfully withheld or unreasonably delayed.” The two claims share a threshold: a court may act only where the agency “failed to take a discrete agency action that it is required to take” (Norton v. Southern Utah Wilderness Alliance, 542 U.S. 55, 64 (2004), as quoted by the D.C. Circuit in 2024). Habeas corpus (28 U.S.C. § 2241), by contrast, challenges detention, not processing delays.
When Does a Mandamus Lawsuit Apply to Immigration Cases?
A mandamus action can apply to many kinds of delayed immigration applications. Here are the most common scenarios, and the limits courts have drawn.
I-485 Adjustment of Status Delays
If your green card application has been pending well beyond the processing time USCIS posts for your form and office, with no interview or decision and no answer to your inquiries, a mandamus action may be worth evaluating. This is common when cases are stuck in prolonged background checks or “administrative processing” with no timeline.
Naturalization (N-400) Delays
Naturalization has its own court route. Under 8 U.S.C. § 1447(b), if USCIS has not made a decision within 120 days after your naturalization interview, you may apply to the federal district court where you live for a hearing. That court “may either determine the matter or remand the matter, with appropriate instructions,” to USCIS. Because the 120-day point is written into the statute, it is one of the clearest triggers in immigration law. If the delay comes before the interview, the general mandamus and APA claims are the route instead.
Writ of Mandamus for I-130 and I-140 Delays
Family-based (I-130) and employment-based (I-140) petitions can sit at USCIS service centers far beyond posted processing times. If service requests have failed, mandamus is an option. One caution for categories with a visa queue: in Da Costa v. Immigration Investor Program Office, 80 F.4th 330 (D.C. Cir. 2023), the court held that USCIS followed a “rule of reason” in processing EB-5 investor petitions and that ordering a decision would have meant “disfavored line-jumping” ahead of earlier filers, and it affirmed dismissal of the investors’ delay claims. How a court views your delay depends on your category and on where the case is filed.
Asylum Interview and Decision Delays
Affirmative asylum applicants often wait years for an interview. USCIS publishes its scheduling order: on one track it gives priority to rescheduled interviews, then to applications pending 21 days or fewer, then to other pending applications “starting with newer filings and working back towards older filings,” the “last in, first out” approach; on a second track some officers work through the backlog starting with the oldest applications. An asylum delay case has to deal with that published order, because the first TRAC factor (below) asks whether the agency’s timing follows a rule of reason. USCIS also says asylum office directors may consider an urgent request to be scheduled outside the priority order, made in writing to the asylum office.
Consular Processing Delays (221(g) Administrative Processing)
When a consulate refuses a visa under section 221(g) and places the case in “administrative processing,” a mandamus claim faces a threshold question: is there still a duty to act? In Karimova v. Abate, No. 23-5178 (D.C. Cir. July 24, 2024), an unpublished judgment, the D.C. Circuit held that an applicant whose visa had been officially refused and then placed in administrative processing had not shown that the consular officer had a duty to act further, and it affirmed dismissal. Consular delay cases filed in Washington, D.C. now have to address that judgment.
FOIA Delays Are Not Mandamus Cases
A Freedom of Information Act (FOIA) request for your immigration file has its own deadline and its own lawsuit. The agency generally has 20 working days to decide whether to comply with a request, and FOIA itself gives the district court jurisdiction “to enjoin the agency from withholding agency records and to order the production of any agency records improperly withheld” (5 U.S.C. § 552(a)(6)(A) and (a)(4)(B)). A FOIA delay is litigated under FOIA, not as a mandamus action.
Need Legal Help? If your immigration case has been delayed for months or years with no resolution, Joya Law Firm can review whether a demand letter or a mandamus action fits your case. Book a free consultation to discuss your case.
Options to Try Before a Lawsuit
A mandamus case is usually the last step, not the first. These are the usual earlier steps, which also build the record a court will look at.
| Option | What it does | Its limit |
| Case inquiry (e-Request, online account, Contact Center) | Asks USCIS to look at a case that is outside its posted processing time | USCIS decides whether and when to act |
| Expedite request | Asks USCIS to decide ahead of others for reasons such as severe financial loss, an emergency or urgent humanitarian situation, or clear USCIS error | USCIS says the decision to expedite “is within the sole discretion of USCIS” |
| CIS Ombudsman or congressional inquiry | Asks an outside office to raise the case with USCIS | Neither can order USCIS to decide |
| Demand letter | Gives USCIS and the U.S. Attorney’s Office notice that a lawsuit will follow | Not a court order |
| Mandamus and APA lawsuit | Asks a federal judge to order a decision | Cannot order an approval |
Our guide on what to do when your immigration case is delayed walks through each option in order.
The Legal Standard: What You Must Prove
Federal courts treat mandamus as an extraordinary remedy. In the D.C. Circuit’s words, courts can compel agency action only in the “extraordinary” case where they find a “transparent violation[] of a clear duty to act” and that the official “unreasonably delayed the contemplated action.” A mandamus claim has three elements:
1. You Have a Clear Right to the Relief Sought
You must show a clear right to have your application adjudicated. You’re not asking the court to force an approval, only to compel a decision on an application you properly filed.
2. The Government Has a Clear Duty to Act
The defendant agency must have a clear, nondiscretionary duty to perform the act you’re requesting. USCIS may not dispute that it has a duty to decide a properly filed application; in Da Costa, for example, USCIS did not contest the investors’ assertion of a nondiscretionary duty. The APA reinforces this: “Within a reasonable time, each agency shall proceed to conclude a matter presented to it.” (5 U.S.C. § 555(b))
3. There Is No Other Adequate Remedy Available
Mandamus is available only when no other adequate remedy exists. Neither 28 U.S.C. § 1361 nor 5 U.S.C. § 706(1) lists case inquiries as a precondition, but a record of what you tried (contact center inquiries, e-Requests, an expedite request, congressional and Ombudsman inquiries) shows the court that the delay is real and that USCIS knew about it.
The TRAC Factors: How Courts Decide Whether a Delay Is Unreasonable
Many federal courts weigh six non-exclusive factors from Telecommunications Research & Action Center (TRAC) v. FCC, 750 F.2d 70, 80 (D.C. Cir. 1984). The table puts each factor in plain English, with how the D.C. Circuit applied it in Da Costa (2023), where the court said factors one and four “carry the greatest weight in our analysis.”
| TRAC factor | The question in plain English | How it played out in Da Costa |
| 1. Rule of reason | Does the agency decide cases by a sensible, consistent order? | USCIS’s visa-availability approach was a rule of reason; this favored the government |
| 2. Statutory timetable | Did Congress set a deadline? | The 180-day “sense of Congress” in 8 U.S.C. § 1571(b) is not a deadline, but the court used it as a ruler; this “somewhat” favored the applicants |
| 3. Human health and welfare | Delays “are less tolerable when human health and welfare are at stake” | The financial harm alleged was not enough to outweigh the other factors |
| 4. Competing priorities | Would a court order just move you ahead of other people waiting? | Yes: relief would have been “disfavored line-jumping”; this favored the government |
| 5. Interests prejudiced | How much is the delay hurting you? | Considered together with factor three |
| 6. Impropriety | Is there bad faith behind the delay? (Not required to win) | Neutral |
The lesson for a delay case: the length of the wait matters, but so do the reasons USCIS gives for its processing order, whether your requested relief would only move you ahead of earlier filers, and concrete harm such as lost work authorization, family separation or health consequences, documented with evidence.
The Mandamus Process: Step by Step
Here’s how the process works:
Step 1: Case Evaluation
An experienced immigration attorney reviews your case to determine whether your delay is legally unreasonable and whether mandamus is the right strategy. That includes checking the file for problems a decision could expose, because a lawsuit asks for a decision, and a decision can be a denial or a request for evidence.
Step 2: Sending a Demand Letter to USCIS
A demand letter to USCIS is the step between ordinary case inquiries and a federal lawsuit. Your attorney sends it to USCIS and the U.S. Attorney’s Office. It cites the legal basis for a mandamus action and gives the government a deadline, typically 30 days, to decide the case. That legal basis is the same as for the lawsuit itself: 28 U.S.C. § 1361 and the APA, 5 U.S.C. §§ 555(b) and 706(1). In some cases the letter alone resolves the matter.
A demand letter usually includes:
- your receipt number, form type, filing date and the office handling the case;
- USCIS’s posted processing time and case inquiry date for your form and office, from its Check Case Processing Times page, on the day the letter is written;
- a dated log of every inquiry you made (e-Request, online account message, Ask Emma, Contact Center, Ombudsman, congressional office) with any reference numbers;
- for a naturalization case, the date of your interview and the 120-day point under 8 U.S.C. § 1447(b);
- the concrete harm the delay is causing, with documents;
- the deadline to act, and a statement that a complaint will be filed in federal court if USCIS does not decide the case.
A demand letter is not a court order. It cannot compel USCIS to act, and it cannot require an approval. Can a demand letter backfire? It asks for a decision, so if the file has a weakness, the decision may be a denial or a request for evidence rather than an approval. That is why the file review in Step 1 comes first.
Step 3: Filing the Complaint
If the demand letter doesn’t produce results, your attorney files a complaint in U.S. federal district court, usually in the district where you reside, naming the appropriate government defendants.
Step 4: Government Response
Under Federal Rule of Civil Procedure 12(a)(2), the United States, its agencies and officers sued in their official capacity have 60 days after service on the U.S. Attorney to answer the complaint. During this window, government attorneys contact USCIS about your case, and USCIS may act on it.
Step 5: Resolution
A mandamus case can end without a trial: if USCIS decides the application, the lawsuit is dismissed as moot. In Da Costa, for example, the court dismissed as moot the claims of the plaintiffs whose petitions USCIS approved while the appeal was pending. If USCIS does not decide, the government defends the delay, usually on the TRAC factors, and the court rules on the claim.
How Long Does a Writ of Mandamus Take?
| Stage | Estimated Time |
| Case evaluation + demand letter | 1–2 weeks |
| Government response to demand letter | 30 days (the deadline the letter sets) |
| Filing complaint (if needed) | 1–2 weeks after demand deadline |
| Government’s answer after service | Up to 60 days (Fed. R. Civ. P. 12(a)(2)) |
| Total (estimate; varies by case) | 2–4 months |
Actual timing varies by case, agency and court. If the government defends the delay instead of deciding the case, the court sets its own schedule and the case takes longer.
Is There a Mandamus Success Rate? What to Expect
“Does mandamus actually work?” It can, but no attorney can guarantee a specific outcome, and we know of no official USCIS or federal court statistic that measures a “mandamus success rate.” Numbers you see online are usually one firm’s own count, defined its own way. What can be said is how these cases end:
- USCIS decides the case. The lawsuit is then dismissed as moot. The decision can be an approval, a denial or a request for evidence.
- The government defends the delay. The court applies the TRAC factors. Courts have dismissed claims where the agency followed a rule of reason and relief would have meant line-jumping (Da Costa), and where a consular refusal left no further duty to act (Karimova).
- The court orders a decision. Under 28 U.S.C. § 1361 and 5 U.S.C. § 706(1), the court can compel the agency to decide; it still cannot order an approval.
- Resolution means a decision, not necessarily an approval. Mandamus compels adjudication; the merits stay with USCIS.
How Much Does a Writ of Mandamus Cost?
The federal court filing fee for a civil case is $405: the $350 filing fee set by 28 U.S.C. § 1914(a) plus the $55 administrative fee in the Judicial Conference’s fee schedule. Attorney’s fees are separate; at Joya Law Firm mandamus representation is structured as a flat fee so you know the cost upfront.
Can you recover fees from the government? The Equal Access to Justice Act (28 U.S.C. § 2412(d)) lets a court award fees to a “prevailing party” unless the government’s position “was substantially justified,” and it limits eligibility to individuals whose net worth did not exceed $2,000,000 when the case was filed. If USCIS simply decides the case and the lawsuit is dismissed as moot, a fee award is unlikely: the Supreme Court held in Buckhannon, 532 U.S. 598 (2001), that a defendant’s voluntary change in conduct “lacks the necessary judicial imprimatur” to make the plaintiff a prevailing party under federal fee-shifting statutes.
Why Choose Joya Law Firm for Your Mandamus Case?
At Joya Law Firm, mandamus litigation is part of our federal immigration practice. Here’s what to expect:
- Delay cases and the underlying case together. We review the demand letter, the lawsuit and the application it is meant to move, so a decision does not catch you unprepared.
- Offices on both coasts. With offices in Walnut Creek and Brentwood, CA and in Manhattan, NY, we serve immigration clients nationwide.
- Transparent pricing. Flat-fee mandamus representation, with no hourly billing surprises.
- Full-spectrum support. Attorney Kamran Joya advises on the underlying green card, naturalization, or visa matter as well.
If you are comparing your wait with typical timelines, see how long a green card takes in 2026. A mandamus case is a lawsuit, but what it asks for is narrow: a decision.
Frequently Asked Questions About Writs of Mandamus
Can I file a mandamus lawsuit myself, or do I need a lawyer?
You can. Under 28 U.S.C. § 1654, parties in federal court may conduct their own cases personally or by counsel, so a pro se (self-filed) mandamus case is allowed. But mandamus is a federal lawsuit with specific procedural requirements and legal standards, and the government will be represented by the U.S. Attorney’s Office. An experienced attorney can draft the complaint around the TRAC factors and respond if the government moves to dismiss.
How long does my case need to be delayed before I can file?
There’s no fixed waiting period, except the 120 days after a naturalization interview under 8 U.S.C. § 1447(b). Courts evaluate reasonableness based on the application type, posted processing times, the agency’s processing order and the harm the delay causes. A case pending well beyond posted times, with inquiries that went nowhere, is the usual starting point for an evaluation.
What is a demand letter to USCIS?
It is a letter, usually from an attorney to USCIS and the U.S. Attorney’s Office, that sets out the delay, the legal basis for a mandamus action (28 U.S.C. § 1361 and 5 U.S.C. §§ 555(b) and 706(1)) and a deadline, typically 30 days, to decide the case before a lawsuit is filed. It is not a court order and cannot require an approval.
Will filing a mandamus lawsuit hurt my case or cause USCIS to retaliate?
It should not. USCIS officers are bound by law when adjudicating applications, and your case is evaluated on its merits once the lawsuit is filed. The real risk is different: a lawsuit asks for a decision, and if the file has a problem, the decision may be a denial or a request for evidence.
What if USCIS acts on my case after I file? Do I still owe attorney’s fees?
If USCIS adjudicates your case after filing, the lawsuit is dismissed as moot, because you received the decision you asked for. You’ll owe your attorney for work performed (flat-fee arrangements are standard). Recovering fees from the government under the Equal Access to Justice Act requires being a “prevailing party,” which a dismissal after USCIS acts on its own usually does not provide (Buckhannon, 532 U.S. 598).
Can a mandamus lawsuit force USCIS to approve my application?
No. Mandamus compels a decision: approval, denial, or a request for additional evidence. The court cannot substitute its judgment for USCIS’s on the merits.
Conclusion
You don’t have to accept indefinite government delay. A writ of mandamus, usually paired with an APA claim, asks a federal court to require USCIS or the Department of State to decide your application within a reasonable time. It asks for one thing: a decision on your application.
Whether your green card, naturalization, visa petition, or asylum case has stalled, the right next step depends on how long it has been pending, what USCIS has said, and what a decision would mean for you. You have rights under federal law, and tools to enforce them.
Talk to a Lawyer Today. Contact Joya Law Firm at (415) 302-9437 or book a free consultation online.
Sources: 28 U.S.C. § 1361; 5 U.S.C. § 555(b); 5 U.S.C. § 706(1); 8 U.S.C. § 1447(b); Fed. R. Civ. P. 12(a)(2); 28 U.S.C. § 1914 and the District Court Miscellaneous Fee Schedule; 28 U.S.C. § 2412; Buckhannon, 532 U.S. 598 (2001); Da Costa v. Immigration Investor Program Office (D.C. Cir. 2023); Karimova v. Abate (D.C. Cir. 2024); USCIS, Affirmative Asylum Interview Scheduling; USCIS, Expedite Requests; 5 U.S.C. § 552. Checked November 20, 2026.
