OPINION
Appellant Richard Anyanwu challenges his conviction based on a plea agreement that was negotiated with the court, arguing that the district court impermissibly became a direct participant in the plea negotiations. Because the district court erred by improperly injecting itself into the plea agreement negotiations and promising a particular sentence in advance, we reverse arid reriiand.
FACTS
Appellant Richard Anyanwu allegedly shot H.I. while she was seated in her car, in her garage. The state charged Anyan-wu with attempted first-degree murder, and first- and second-degree assault. The district court held a plea hearing, in which the state sought the statutory maximum sentence of 240 months. The presumptive guidelines sentence was 180 months. Defense counsel indicated that Anyanwu would plead guilty to all three counts “in a straight plea to the Court with the understanding that the Court would give him a sentence of 210 months in prison.” The district court promised Anyanwu a 210-month sentence, noting “The Court is agreeing to, if [Anyanwu] pleads guilty, to give a sentence to the Commissioner of Corrections for 210 months.” The prosecutor objected to any disposition other than 240 months in prison and noted, “the record should be clear that this is an agreement between the defense and the Court and that the State is not a party to it.” Anyanwu did not object to the district court’s promise of a 210-month sentence.
At sentencing, the district court imposed a 210-month sentence, an upward departure of 30 months from .the presumptive guidelines sentence. The prosecutor again noted, “This was a straight plea to the Court with an agreed upon sentence of 210
Anyanwu did not move to withdraw his guilty plea. Instead, Anyanwu filed this direct appeal.
ISSUES
I. Is a conviction erroneous when it is based on a plea agreement negotiated with the court?
II. Should the departure-from the presumptive guidelines sentence be vacated because the state did not give timely notice of its intention to depart from the presumptive guidelines sentence and because the district court erred in failing to file a departure report?
. ANALYSIS
I
Anyanwu argues that his conviction should be vacated because the district court impermissibly became a direct participant in the plea negotiations. He asserts that the case must be remanded to a different judge to allow him the opportunity to withdraw his plea. The state concedes that the district court erred in promising a particular sentence in advance, but contends that Anyanwu did not object to this error and has failed to show that the error prejudiced him by affecting his substantial rights.-
1
We acknowledge the procedural and substantive irony of an appeal in which the district court granted appellant precisely what he requested. But a defendant has a" right to -challenge his guilty plea on direct appeal even though he has not moved to withdraw the guilty plea in the district court.
State v. Newcombe,
The state also contends that Any-anwu has not demonstrated any prejudice because his plea was knowing, voluntary, and intelligent, and the record supports the limited upward departure. We agree that Anyanwu’s plea was accurate, voluntary, and intelligent. The complaint in this matter indicates that Anyanwu had already confessed to the shooting, and An-yanwu did not make any claim of innocence at the time of the plea or at sentencing. In addition, Anyanwu completed a Rule 15 petition and went through an extensive waiver of his trial rights on' the record and affirmed that his plea was voluntary. Moreover, Anyanwu likely benefited from the error because he received a lesser sentence than what the state was recommending to the court. But again, irrespective of any demonstrated prejudice, the law is clear that a guilty plea is per se invalid when the district court im-permissibly injects itself into plea negotiations.
Moe,
The Minnesota Supreme Court has disapproved of district court participation in plea bargains.
See Johnson,
The ultimate judicial responsibility must be to make reasonably certain that a person innocent of any crime has not been improperly induced to plead guilty to a crime. It is likewise a judicial responsibility to protect society against a defendant’s being permitted to bargain for a plea excessively lenient for the gravity of the crime apparently in fact committed.... [T]he court should neither usurp the responsibility of counsel nor participate in the plea bargaining negotiation itself.
Johnson,
[T]he agreed disposition should be openly acknowledged and fully presented to the judge for review before the plea is entered. Inevitably the judge plays a part in the negotiated guilty plea. [The judge’s] role is a delicate one, for it is important that [the judge] carefully examine the agreed disposition, and it is equally important that [the judge] not undermine his [or her] judicial role by becoming excessively involved in the negotiations themselves.... The judge’s role is not that of one of the parties to the negotiation, but that of an independent examiner to verify that the defendant’s plea is the result of an intelligent and knowing choice and not based on misapprehension or the product of coercion.
Johnson,
When a district court injects itself into plea negotiations, it has removed
II
In his pro se supplemental brief, Anyan-wu argues that this court should vacate the upward departure from the ■ presumptive sentence because the state did not give timely notice of its intention to seek a departure from the presumptive sentence and because the district court did not file a departure report. We need not address these issues because we reverse on the district court’s error in improperly injecting itself into the plea negotiations by promising Anyanwu a particular sentence in advance.
DECISION
The district court erred by improperly injecting itself into the plea agreement negotiations and promising a particular sentence in advance. By doing so, the district court abandoned its independent role and became an advocate. Accordingly, we reverse Anyanwu’s conviction and remand the case for reassignment to a different district court judge to allow Any-anwu the opportunity to withdraw his guilty plea.
Reversed and remanded.
Notes
. The state also argues that the appeal should be dismissed because Anyanwu did not comply with the procedural requirements for withdrawing his guilty plea (i.e., bringing a petition for post-conviction relief or filing a timely motion to the trial court to withdraw his guilty plea). But a defendant who challenges a judgment of conviction against him based on an invalid guilty plea may seek a post-conviction hearing from the district court or may appeal directly to this court.
Brown v. State,
