A procedure used in some criminal prosecutions against persons who are arrested and have no previous criminal background. Diversion creates a written contract between the prosecutor and accused in that if the accused completes the requirements in the contract. at a time in the future, the prosecutor will dismiss all charges.