Prosecutor

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. Prosecutors usually represent the government in an adversarial system.

A lawyer who helps the defendant in trial, is acting as a criminal defense attorney.