The Attorney General's office of Costa Rica is the legal and technical consultative organ of the Executive Branch and it represents the State. It has functional independence to perform its duties.
It was born as a dependency of the Ministry of Justice and was originally assigned with the duties of the Public Prosecutor's office along with those typical of a consultative organ in which the public administration might have any kind of interest. In 1967 it became part of the Presidency of the Republic and in 1982 its prosecutorial functions disappear, to be handled exclusively by the Public Prosecutor's Office.