Can the defendant retract his confession and plead not guilty?

If the defendant agrees with the lawyer's guilty plea before the trial, but suddenly refuses to plead guilty in court, the lawyer can't continue to plead guilty anyway. Otherwise, the lawyer will not be able to safeguard the legitimate interests of the client, and even deviate from the lawyer's loyal obligation. This is because, unlike the case where the defendant suddenly pleads guilty, once the defendant suddenly pleads not guilty, it is equivalent to denying the original knowledge of guilty defense reached with the lawyer and starting to exercise the right of innocent defense again. If the lawyer does not communicate with the defendant, but continues to plead guilty to the court on the grounds of so-called "independent defense", then this will cause the lawyer's guilty defense to offset the defendant's innocent defense.

Legal basis: Article 227th of Judicial Interpretation of Criminal Procedure.

In a case where the defendant pleads guilty, after confirming that the defendant knows the criminal facts and charges charged in the indictment, voluntarily pleads guilty and knows the legal consequences of pleading guilty, the court investigation can mainly focus on controversial issues such as sentencing.

In a case where the defendant does not plead guilty or the defender does not plead guilty, the court investigation shall find out the relevant sentencing facts on the basis of finding out the conviction facts.