Petition for prohibition

Section 2, Rule 65 of the Rules of Court lay down under what circumstances a petition for prohibition may be filed:
SEC. 2. Petition for prohibition. - When the proceedings of any tribunal, corporation, board, officer or person, whether exercising judicial, quasi-judicial or ministerial functions, are without or in excess of its or his jurisdiction, or with grave abuse of discretion amounting to lack or excess of jurisdiction, and there is no appeal or any other plain, speedy, and adequate remedy in the ordinary course of law, a person aggrieved thereby may file a verified petition in the proper court, alleging the facts with certainty and praying that judgment be rendered commanding the respondent to desist from further proceeding in the action or matter specified therein, or otherwise granting such incidental reliefs as law and justice may require.

In a petition for prohibition against any tribunal, corporation, board, or person – whether exercising judicial, quasi-judicial, or ministerial functions – who has acted without or in excess of jurisdiction or with grave abuse of discretion, the petitioner prays that judgment be rendered, commanding the respondents to desist from further proceeding in the action or matter specified in the petition.