Mandamus ("We command") is a judicial remedy in the form of an order from a superior court, 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. It cannot be issued to compel an authority to do something against statutory provision. For example, it cannot be used to force a lower court to reject or authorize applications that have been made, but if the court refuses to rule one way or the other then a mandamus can be used to order the court to rule on the applications.
Mandamus may be a command to do an administrative action or not to take a particular action, and it is supplemented by legal rights. In the American legal system it must be a judicially enforceable and legally protected right before one suffering a grievance can ask for a mandamus. A person can be said to be aggrieved only when he is denied a legal right by someone who has a legal duty to do something and abstains from doing it.
The applicant pleading for the writ of mandamus to be enforced should be able to show that he or she has a legal right to compel the respondent to do or refrain from doing the specific act. The duty sought to be enforced must have two qualities: It must be a duty of public nature and the duty must be imperative and should not be . Furthermore, mandamus will typically not be granted if adequate relief can be obtained by some other means, such as appeal.
The purpose of mandamus is to remedy defects of justice. It lies in the cases where there is a specific right but no specific legal remedy for enforcing that right. Generally, it is not available in anticipation of any injury except when the petitioner is likely to be affected by an official act in contravention of a statutory duty or where an illegal or unconstitutional order is made. The grant of mandamus is therefore an equitable remedy; a matter for the discretion of the court, the exercise of which is governed by well-settled principles.
Mandamus, being a discretionary remedy, the application for that must be made in good faith and not for indirect purposes. Acquiescence cannot, however, bar the issue of mandamus. The petitioner must, of course, satisfy the Court that he has the legal right to the performance of the legal duty as distinct from mere discretion of authority. A mandamus is normally issued when an officer or an authority by compulsion of statute is required to perform a duty and that duty, despite demand in writing, has not been performed. In no other case will a writ of mandamus issue unless it be to quash an illegal order.