The role of a criminal lawyer in plea bargaining is to negotiate with the prosecutor to reduce the charges or penalties against their client in exchange for a guilty plea.