The custos legis, or guardian of the legal order, embodies the function exercised by the Public Prosecutor's Office when it acts not as a party, but as a mandatory intervenor to ensure compliance with the legal system, the integrity of the proceedings, and non-waivable interests, as established in the Civil Procedure Code and the 1988 Federal Constitution.
Concept and Foundation
The custos legis institute has the legal nature of a public oversight function, constitutionally assigned to the Public Prosecutor's Office. Unlike acting as dominus litis (the plaintiff), the intervention as a guardian of the legal order aims to ensure that judicial proceedings do not become an instrument for violating non-waivable rights or legislation of public interest.
Classical doctrine, led by authors such as Hely Lopes Meirelles and Hugo Nigro Mazzini, establishes that the custos legis acts in parity with the Judiciary to guarantee strict legality. Its presence is required to prevent the autonomy of the parties' will or the magistrate's inertia from leading to outcomes contrary to public interest, public order, or the protection of vulnerable parties.
Historical Origin and Evolution
The genesis of the institute dates back to the figure of the Procureur du Roi (King's Prosecutor) in French Law, whose duty was to defend the interests of the Crown and, by extension, the law. In the Brazilian legal system, the Public Prosecutor's Office consolidated itself as an independent institution after the 1988 Constitution, transitioning from an organ merely linked to the Executive Branch to an institution essential to the State's jurisdictional function, endowed with functional and administrative autonomy.
Legal and Constitutional Provision
The regulatory framework governing the custos legis finds its foundation in the following provisions:
- Federal Constitution, art. 127: Defines the Public Prosecutor's Office as a permanent institution, essential to the State's jurisdictional function, tasked with defending the legal order, the democratic regime, and non-waivable social and individual interests.
- Civil Procedure Code (CPC/2015), arts. 178 and 179: Establish the cases of mandatory intervention, such as public or social interest, litigation involving incapacitated persons, and collective litigation over the possession of rural or urban land.
Jurisprudence and Current Application
The jurisprudence of the Superior Courts (STF and STJ) has consolidated the understanding that the absence of notification to the Public Prosecutor's Office, when its intervention is mandatory, generates relative or absolute nullity, depending on the demonstration of prejudice. Recently, the STJ has emphasized the need for proactive, rather than merely formal, action, under penalty of undermining the oversight function.
Within the scope of the STF, the debate on custos legis often revolves around the protection of fundamental rights in concentrated constitutional review proceedings, where the Office of the Prosecutor-General acts as custos legis of the Constitution itself.
Related Principles and Divergences
The principle of strict legality and the principle of due process are the pillars that support the intervention. However, there are doctrinal disagreements regarding the extent of the guardian of the law's action in strictly patrimonial proceedings. A minority current advocates restricting intervention only to cases of absolute non-waivability, while the majority current, aligned with jurisprudence, defends intervention whenever there is a public interest evidenced by the social relevance of the demand.
Contemporary Relevance
Currently, the custos legis plays a fundamental role in the protection of trans-individual rights and in the oversight of proceedings involving new technologies and data protection. The action of the Public Prosecutor's Office as a guardian of the legal order is the constitutional antidote against the improper privatization of proceedings that, although private in their origin, touch upon values that society has chosen as non-waivable.
Legal and Jurisprudential References
- Brazil. Constitution of the Federative Republic of Brazil of 1988, art. 127.
- Brazil. Law No. 13.105, of March 16, 2015 (Civil Procedure Code), arts. 178 and 179.
- STJ, Special Court, AgInt in EDcl in REsp 1.835.452/SP, Rel. Min. Herman Benjamin. (Understanding regarding nullity due to lack of notification).
- STF, ADI 6.552/DF, Rel. Min. Luiz Fux. (MP intervention in constitutional review).
- Didier Jr., Fredie. Course on Civil Procedural Law: General Theory of Procedure. Salvador: Juspodivm, 2023.



