What is a plea agreement?

A plea agreement is a way to settle a case without a trial.