Mandamus is a command from a court to an official to perform a public duty. It is used to enforce the performance of statutory duties.