When USCIS or a U.S. consulate leaves your case pending far beyond normal processing times, a mandamus lawsuit in federal court can push the government to make a decision. It asks the court to order the agency to act. It does not ask the court to approve your case.
These cases usually rely on two federal laws. The Mandamus Act, 28 U.S.C. §1361, gives federal district courts jurisdiction over actions to compel a federal officer or agency to perform a duty owed to the plaintiff. The Administrative Procedure Act (APA) requires agencies to conclude matters presented to them within a reasonable time (5 U.S.C. §555(b)) and allows courts to compel agency action unlawfully withheld or unreasonably delayed (5 U.S.C. §706(1)). The court can order the agency to decide your case, but it does not decide whether you should be approved.
There is no fixed number of months. Many federal courts weigh the six factors from Telecommunications Research & Action Center v. FCC (D.C. Cir. 1984), known as the TRAC factors. In general terms, courts ask:
Courts apply these factors differently, and some have dismissed delay cases, especially when an order would simply move one applicant ahead of others. Before recommending a lawsuit, we review USCIS processing times, your case history and recent decisions in the court where the case would be filed.
These steps are not always legally required, but they create a record showing the agency had every opportunity to act, and they sometimes solve the problem without litigation.
Delay lawsuits are commonly filed for long-pending Form I-485 (adjustment of status), Form I-130 (family petitions), Form I-140 (employment petitions) and Form N-400 (naturalization), among other applications. Naturalization has a separate route: if USCIS has not decided your N-400 within 120 days after your naturalization interview, 8 U.S.C. §1447(b) allows you to apply to the federal district court where you live, which may decide the application itself or send it back to USCIS with instructions. Before the interview takes place, naturalization delays are addressed through mandamus and the APA.
Delays at U.S. embassies and consulates, including cases held in administrative processing after a refusal under INA section 221(g), are sometimes challenged in federal court. These cases are harder. Under the doctrine of consular nonreviewability, courts generally do not review a consular officer’s decision to grant or refuse a visa, and the Supreme Court reaffirmed that doctrine in Department of State v. Muñoz (2024). Courts are divided on whether a 221(g) refusal followed by administrative processing is a final decision or a pending matter that can still be compelled. We explain these limits honestly before anything is filed.
The complaint is filed in federal district court and served on the government, which generally has 60 days after service on the U.S. Attorney to respond (Federal Rule of Civil Procedure 12(a)(2)). In many cases the agency schedules an interview, requests evidence or issues a decision during this period, and the lawsuit is then dismissed because there is nothing left to compel. The government may instead ask for more time or move to dismiss, arguing that the delay is reasonable, and the court may agree. A lawsuit forces a decision, not a particular outcome, so your underlying case must be ready before you sue.
A mandamus complaint is a federal lawsuit. It must be filed in a proper federal district court and signed by an attorney admitted to practice before that court, or by the plaintiff personally. Admission to practice in a state does not by itself allow an attorney to file in every federal court. We explain at consultation which court is proper for your case and how admission requirements apply.
Ozek Law Firm attorneys are admitted in Maryland, New York and the District of Columbia. California matters are handled with California-licensed co-counsel. Immigration law is federal, so we represent immigration clients across the U.S. and worldwide. Federal court filings require an attorney admitted in that court.

Tolga Ozek founded Ozek Law Firm and has spent more than 13 years guiding individuals, families, investors and companies through U.S. immigration and business law, in English and Turkish. He is admitted in Washington, D.C., Maryland and New York.
No. The court can order the agency to make a decision within a reasonable time, but it does not decide whether you qualify. The agency still applies the same law and can approve or deny your case.
There is no fixed waiting period. Courts look at the TRAC factors, including the length of the delay, the harm it causes and the agency’s competing priorities. A case well outside published processing times, with a documented history of inquiries, is usually a stronger candidate.
Under 8 U.S.C. §1447(b), you may apply to the federal district court where you live once 120 days have passed after your naturalization interview without a decision. The court may decide the application or return it to USCIS with instructions.
Sometimes, but these cases face serious limits. Courts generally do not review consular visa decisions, and they are divided on whether a 221(g) refusal can still be compelled. We review the facts and the relevant court’s decisions before recommending a suit.
A lawsuit asks for a decision under the same legal standards. The risk is that a faster decision may be a denial if the application has weaknesses, so we review your underlying case before filing.
If the agency acts on your case, the lawsuit usually becomes unnecessary and is dismissed, often by agreement of the parties.
The cost depends on the court, the type of case and how the government responds. We provide a quote at consultation, and the court filing fee is separate.
Take the first step toward turning your challenges into achievements. We are ready to listen.