What is the difference between mandamus and injunction? What if the party is a government official?
<p>Wikipedia defines <a href="https://en.wikipedia.org/wiki/Mandamus" rel="nofollow noreferrer">mandamus</a> as:</p>
<blockquote>
<p>Mandamus is a judicial remedy in the form of an order from a court[1] to any government, subordinate court, corporation, or public authority, to do (or forbear from doing) some specific act which that body is obliged under law to do (or refrain from doing), and which is in the nature of public duty, and in certain cases one of a statutory duty</p>
</blockquote>
<p>and defines <a href="https://en.wikipedia.org/wiki/Injunction" rel="nofollow noreferrer">injunction</a> as:</p>
<blockquote>
<p>An injunction is a legal and equitable remedy in the form of a special court order that compels a party to do or refrain from specific acts.</p>
</blockquote>
<p>So it looks like the only difference is that mandamus is directed against a government official (which may be not a party to a proceeding?), while injunction is directed to a party of a proceeding.</p>
<p>Is this the only difference?</p>
<p>What if the party of a proceeding is a government official?</p>
<p>Would he receive a mandamus or an injunction?</p>

<p>First, mandamus is always a <a href="https://legal-dictionary.thefreedictionary.com/writ+of+mandamus" rel="nofollow noreferrer">form of writ</a> whereas injunctions are typically a part of the proceedings in a lawsuit. Writs and lawsuits are each distinct, individual legal actions whereas multiple motions for various remedies like injunctive relief can occur within one continuous lawsuit. <a href="https://en.m.wikipedia.org/wiki/Writ" rel="nofollow noreferrer">The lawsuit and the various motions within it including injunctions have largely replaced the common law writ (including writs of mandamus except those from a higher court to a lower) as legislated in rules of civil procedure federally and in most states</a></p>

united-states injunctions writ-of-mandamus