The process through which an accused person and a prosecutor negotiate a mutually satisfactory disposition of a case. Usually it is a legal transaction in which a defendant pleads guilty in exchange for some form of leniency. It often involves a guilty plea to lesser charges or a guilty plea to some of the charges if other charges are dropped. Such bargains are not binding on the court.