The writ of Mandamus is issued by a court to a public official or body that is failing to perform its duty. It is a command to do or not do something specific, usually to enforce a public duty. In this context, it ensures legal rights are upheld if they are being infringed upon due to inaction.