A writ is a formal legal order issued by a court or other legal authority, commanding the person to whom it is addressed to perform or refrain from performing a specified act. Writs are essential tools in the judicial system, serving as mechanisms to enforce rights, administer justice, and ensure compliance with the law.