legal representative of the state in criminal trials

A prosecutor is a lawyer who argues in a court that the defendant should be found guilty of a crime. The prosecutor represents a client, which is sometimes the state (government). It is the prosecutor's job to do what he can to have criminals punished for their crimes.