Criminal cases are often resolved through plea agreements eliminating the need for a trial. In most cases, the defendant pleads “no contest” or “guilty” to have a reduced sentence or lighter charges. The defense attorney, the judge, and the prosecuting attorney all have roles in such cases.