The process by which the accused and prosecution negotiate a plea agreement, typically for a reduced sentence or charges.