What is the purpose of a plea bargain?

In the legal area, a plea bargain is made between the lawyer and defendant to possible reduce a sentence for the defendant and to show mercy and compassion. Plea bargains are also used to obtain information from one accused to build a stronger case against another accused.