 The Prosecutor General is appointed by the President and confirmed by the Senate.The office of Prosecutor General of the Republic (PGR) is an autonomous agency in charge of criminal prosecution and the defense of society in general, versus the office of the Attorney General, which represents the federal government in legal proceedings.The Prosecutor General of the Republic (PGR) is the head of the Federal Prosecution Service (Ministério Público Federal), which is also an essential function but holds the responsibility for criminal prosecution.