A petition for mandamus is a legal request filed to a higher court asking it to compel a lower court or government official to perform a specific, non-discretionary duty that they are legally obligated to do.