Writ of Mandamus Examples: Agencies, Courts, and Filing

A writ of mandamus is a court order that forces a government official, agency, or lower court to carry out a legal duty it has refused or neglected to perform. Common examples of a writ of mandamus include forcing USCIS to decide a visa petition that has sat for years, ordering an agency to process a permit application once the applicant has met every statutory requirement, compelling a records custodian to release documents that aren’t legally exempt, and directing a trial judge to rule on a motion that has been pending without decision. The Supreme Court has called mandamus “a drastic” remedy “to be invoked only in extraordinary situations,” available only when you have no other adequate way to get relief and your right to the writ is “clear and indisputable.”1FindLaw. Kerr v. United States District Court, 426 U.S. 394 (1976)

When Mandamus Is Actually Available

Before any example makes sense, you need to know the three conditions a court checks. All three must be satisfied, and most petitions die on the first.

First, you cannot have any other adequate remedy. If you could file a direct appeal, request administrative review, or use any standard procedure to fix the problem, mandamus is off the table. Second, your right to the action must be clear and indisputable, meaning the duty you’re trying to enforce is mandatory rather than something the official gets to decide. Third, even when the first two are met, issuing the writ remains partly discretionary; the court weighs how disruptive the order would be and whether the legal error is serious enough to justify extraordinary intervention.1FindLaw. Kerr v. United States District Court, 426 U.S. 394 (1976)

The second condition is where most cases are won or lost. Courts distinguish between ministerial duties, which are mandatory, and discretionary duties, which are not. If a statute says an agency “shall” issue a license once specific requirements are met, that’s ministerial — there’s nothing left to decide. If the statute says the agency “may” issue a license after considering various factors, that’s discretionary, and mandamus won’t reach it. A court can order an agency to make a decision it’s been sitting on. It cannot dictate what that decision should be.

Examples Against Government Agencies

The most common real-world use of mandamus is forcing a government agency to act when it has stalled on something it is legally required to do. Federal law requires agencies to conclude matters presented to them “within a reasonable time.”2Office of the Law Revision Counsel. 5 U.S. Code 555 – Ancillary Matters; Practice When an agency blows past that standard, a court can “compel agency action unlawfully withheld or unreasonably delayed.”3Office of the Law Revision Counsel. 5 U.S. Code 706 – Scope of Review

Stalled Applications and Permits

An agency that refuses to process a license application, building permit, or benefits claim when you’ve met every statutory requirement is a textbook mandamus target. The agency doesn’t get to ignore your application indefinitely because it’s busy or because the file ended up at the bottom of someone’s stack. Where Congress set a specific processing timeline, the case becomes even stronger, because you can point to a concrete deadline the agency missed.

A successful mandamus action in this context forces the agency to adjudicate your application. It does not guarantee approval. The court’s role is to break the logjam, not to overrule the agency’s substantive judgment. If the agency reviews your application and denies it on legitimate grounds, mandamus has done its job.

Immigration Application Backlogs

Immigration cases are among the most frequent mandamus filings in federal court today. When USCIS leaves a visa petition, adjustment of status application, or naturalization case sitting for years beyond normal processing times, filing a mandamus lawsuit under 28 U.S.C. § 1361 is often the only way to force action.4Office of the Law Revision Counsel. 28 U.S. Code 1361 – Action to Compel an Officer of the United States to Perform His Duty

Courts evaluate whether the delay is legally unreasonable using six factors drawn from Telecommunications Research and Action Center v. FCC (1984), commonly called the TRAC factors. They look at whether the agency is following a rational processing order, whether Congress set a specific timetable (naturalization, for example, contemplates a decision within 120 days of the interview), how severely the delay affects human welfare, whether the agency’s competing priorities justify the wait, what interests are harmed by continued delay, and whether there’s evidence of bad faith. No single factor controls. In practice, the mere act of filing suit frequently prompts USCIS to pull a stalled case off the shelf and adjudicate it, often before the court needs to rule.

Public Records Refusals

When a government records custodian refuses to release documents that are clearly subject to public disclosure requirements, mandamus can compel production. The key requirement is the same as in any mandamus case: the duty to disclose must be clear and non-discretionary, meaning the records don’t fall under a recognized exemption. If the records involve legitimate confidentiality protections, the custodian has discretion, and mandamus won’t apply.

Examples Against Lower Courts

Mandamus directed at a judge is rarer and harder to win, but it serves an important function: keeping courts within the boundaries of their authority. The Supreme Court has held that the writ is available “to confine an inferior court to a lawful exercise of its prescribed jurisdiction or to compel it to exercise its authority when it is its duty to do so.”1FindLaw. Kerr v. United States District Court, 426 U.S. 394 (1976) These petitions are filed in the appellate court that supervises the lower court.

Common scenarios include a trial court that refuses to accept jurisdiction over a case the law requires it to hear, a judge who won’t enter a final judgment after a jury has returned its verdict, or a judge who lets a post-trial motion sit for months or years without ruling. In each case, the duty is non-discretionary. The judge isn’t being asked to rule a certain way, just to rule at all or to follow a jurisdictional command.

Mandamus Is Not an Appeal

This distinction trips up many petitioners. An appeal challenges a ruling the court already made. Mandamus addresses a court or agency that refuses to act or acts outside its authority entirely. If a judge made a legal error in deciding your motion, appeal is the right path. If the judge refuses to decide the motion at all, mandamus may be your only option. The same logic applies to agencies: if USCIS denies your application for a reason you think is wrong, you challenge the denial through the agency’s review process or in court on the merits. If USCIS never decides your application, mandamus is the tool.

Mandamus is one of several extraordinary writs under the All Writs Act, which authorizes federal courts to “issue all writs necessary or appropriate in aid of their respective jurisdictions.”5Office of the Law Revision Counsel. 28 U.S. Code 1651 – Writs A writ of prohibition does the opposite of mandamus, ordering a lower court to stop doing something outside its jurisdiction. Habeas corpus challenges unlawful detention. Mandamus is the right tool when you need an official to do something they are legally required to do.

Before You File: Demand Letter and Exhaustion

Jumping straight to a mandamus petition without first giving the respondent a chance to act is a common mistake. No federal statute requires a formal demand letter before filing under 28 U.S.C. § 1361, but sending one is strongly advisable. A written demand puts the respondent on notice that you consider their inaction unlawful, creates a paper trail showing you tried to resolve the issue, and sometimes solves the problem without litigation.

Your demand letter should identify the specific legal duty you believe the respondent is failing to perform, cite the statute or regulation creating that duty, and set a reasonable deadline for compliance. If the respondent ignores the letter or refuses to act, that correspondence becomes a powerful exhibit in your petition.

Courts also look for evidence that you’ve exhausted whatever administrative remedies exist. If the agency has an internal appeals process or ombudsman you haven’t used, expect the court to ask why. Exhaustion isn’t always legally mandatory, but courts treat failure to exhaust as evidence that adequate alternative remedies exist, which directly undermines the first prong of the mandamus standard.

Where You File and What It Costs

Where you file depends on who you’re trying to compel. If you’re suing a federal officer or agency for failing to act, you file in federal district court under 28 U.S.C. § 1361.4Office of the Law Revision Counsel. 28 U.S. Code 1361 – Action to Compel an Officer of the United States to Perform His Duty A district court petition follows the ordinary civil complaint format under the Federal Rules of Civil Procedure.

If you’re seeking mandamus against a lower federal court, you file in the circuit court of appeals that oversees that district, and the petition is governed by Rule 21 of the Federal Rules of Appellate Procedure. The petition must state the relief you’re seeking, the legal issues involved, the facts the court needs to understand the situation, and the reasons the writ should issue. You must attach copies of any court orders, opinions, or other parts of the record that help the court understand your case. Federal appellate petitions cannot exceed 30 pages unless the court grants permission for more.6Legal Information Institute. Federal Rules of Appellate Procedure Rule 21 – Writs of Mandamus and Prohibition, and Other Extraordinary Writs State court mandamus petitions follow your state’s procedural rules.

Filing fees for mandamus petitions in the federal circuit courts are $600. If you cannot afford the fee, you can file an application to proceed in forma pauperis, asking the court to waive it.7United States Court of Appeals for the Fourth Circuit. Fourth Circuit Local Rule 21 – Writs of Mandamus and Prohibition, and Other Extraordinary Writs Service rules are strict: when your petition targets a lower court judge, you must file the petition with the circuit clerk along with proof that you’ve served it on every party in the underlying trial court case, and you also have to provide a copy to the trial court judge.6Legal Information Institute. Federal Rules of Appellate Procedure Rule 21 – Writs of Mandamus and Prohibition, and Other Extraordinary Writs

What Happens After You File

The court’s first move is deciding whether your petition deserves a response at all. Under federal rules, the court can deny the petition outright without ordering anyone to answer.6Legal Information Institute. Federal Rules of Appellate Procedure Rule 21 – Writs of Mandamus and Prohibition, and Other Extraordinary Writs This happens more often than not. Most mandamus petitions fail because the petitioner hasn’t cleared the high bar of showing a clear right and no adequate alternative.

If the petition survives initial review, the court issues an order directing the respondent to file an answer within a set number of days. Some courts use an “order to show cause,” which tells the respondent to explain why the court shouldn’t grant the writ. The court may invite the lower-court judge to weigh in or allow an outside party to file an amicus brief. Mandamus proceedings receive priority over ordinary civil cases on the court’s calendar.

For immigration mandamus cases filed in district court, the government typically has 60 days to respond to the initial complaint, and the entire process from filing through resolution commonly takes anywhere from a few months to about a year. Many immigration mandamus cases settle before the court reaches a decision, because USCIS adjudicates the stalled application once it faces active litigation.

If a respondent defies a mandamus order, courts have inherent contempt power. Civil contempt is designed to coerce future compliance through escalating daily fines until the respondent acts. Criminal contempt punishes the defiance itself, and the respondent can’t avoid penalties by belatedly complying. Outright defiance by a government agency is unusual; the more common outcome is the agency complying but issuing the decision the petitioner didn’t want.

Recovering Attorney Fees If You Win

Hiring a lawyer to file a mandamus petition isn’t cheap, but federal law offers a path to recover those costs if you win. Under the Equal Access to Justice Act, a court must award attorney fees and litigation expenses to a party who prevails against the federal government, unless the court finds that the government’s position was “substantially justified” or that special circumstances make an award unjust. You must apply for fees within 30 days of the final judgment, submit an itemized statement of your attorney’s time and rates, and assert that the government’s position was not substantially justified.8Office of the Law Revision Counsel. U.S. Code Title 28 Judiciary and Judicial Procedure 2412

In delay-based mandamus cases, the “substantially justified” defense becomes harder for the government to maintain the longer the delay stretches, because there’s rarely a reasonable justification for years of inaction on an application that’s ready for decision. Beyond attorney fees, a prevailing party can also recover taxable litigation costs including the filing fee, service of process fees, deposition transcript costs, witness fees, and fees for interpreters or document reproduction.