OPINION
delivered the opinion for a unanimous Court.
In this State’s petition for discretionary review, we address the proper remedy for an illegal sentence imposed as a result of a charge-bargained guilty plea. Cody Lang Thomas, appellant, agreed to enter an open plea of guilty to state-jail felony theft as a lesser-included offense of the charged offense of third-degree felony engaging in organized criminal activity. Because the State sought to enhance the state-jail felony theft charge with two prior convictions, the parties believed that appellant was subject to a punishment range for a second-degree felony. The trial judge sentenced appellant to twenty years’ imprisonment. On appeal, the court of appeals determined that this twenty-year sentence was illegal due to an improper application of prior-conviction enhancements resulting in a sentence outside the statutory range, and it remanded the case for a new punishment hearing. In its petition for discretionary review, the State does not challenge the court of appeals’s holding that appellant’s sentence was illegal, but it contends that the court of appeals erred by remanding appellant’s case for resentenc-ing because the proper remedy for the illegal sentence under these circumstances is setting aside appellant’s guilty plea.
I. Background
Appellant was indicted for the offense of engaging in organized criminal activity. Tex. Penal Code § 71.02(a). The alleged underlying offense was theft of property worth more than $1,500 but less than $20,000, a state-jail’felony. Id. § 31.03(e)(4) (West 2015). Because the underlying offense of theft was a state-jail felony, the
On appeal, appellant asserted that the sentence imposed against him was illegal because it was improper to combine his prior convictions to enhance the range of punishment for state-jail felony theft to that of a second-degree felony. The court of appeals sustained appellant’s challenge. Thomas v. State,
The State filed a motion for rehearing in which it asked the court of appeals to reform its judgment by remanding the case to the trial court for a new trial in its entirety, rather than remanding only for a new punishment hearing, The State asserted that, had it realized that appellant would be facing only up to two years’ confinement for the state-jail offense, it very likely would not have entered into the plea agreement. The State contended that the “crux of the original plea agreement
In the instant proceeding, neither the State nor appellant challenges the correctness of the court of appeals’s analysis with respect to the impermissibility of combining appellant’s two prior convictions to enhance the range of punishment for a state-jail felony to that of a second-degree felony. The sole question at issue in this proceeding, therefore, is the propriety of the court of appeals’s decision to remedy the illegal sentence by upholding appellant’s conviction and remanding the case to the trial court for a new punishment hearing. Appellant argues that the court of appeals’s decision to remand his case for a new punishment hearing is proper because the precise range of punishment available was not a binding element of the plea agreement. In appellant’s view, the charge-bargain plea agreement in this case was limited to an agreement to reduce the third-degree-felony charge for engaging in organized criminal activity to a state-jail felony theft charge in exchange for appellant’s plea of guilty to the lesser offense. Despite being admonished that a guilty plea to theft would expose him to a punishment range applicable for second-degree felonies, appellant argues that such exposure was not a term or condition of the parties’ agreement. Thus, appellant asserts that the fact that the parties misunderstood the enhancement effect of the prior convictions and the fact that appellant is no longer subject to second-degree felony punishment has not negated the bargain of the initial agreement—a reduced charge in exchange for relieving the State of the burden of proving its case. Conversely, the State reiterates the arguments it presented to the court of appeals in its motion for rehearing by contending that the proper remedy under these circumstances is to set aside the plea and judgment rather than reassessing only the sentence. In the State’s view, remanding for a new punishment hearing gives appellant an undeserved windfall because it discards the second-degree felony punishment contemplated by the parties at the time that they entered into the plea agreement but preserves a state-jail felony conviction for which the State could have sought a conviction for a third-degree felony and habitual punishment. Thus, in the State’s view, because the bargained-for exchange has been undermined, the proper remedy is to set aside the plea and return the parties to their positions prior to the guilty plea.
We agree with the State’s view that the appropriate remedy under these circumstances is to set aside appellant’s guilty plea and restore the parties to their original positions prior to entering into the plea agreement. We explain our reasoning below.
II. Analysis
“At its core, a plea bargain is a contract between the state and the defen
There are two basic types of plea bargains—sentence bargains and charge bargains. Shankle v. State,
In the context of sentence bargaining, we have previously held that, when a portion of a plea agreement is unenforceable to one party’s detriment, the proper remedy is to set aside the plea agreement and restore the parties to their original bargaining positions. In Shannon v. State, the defendant was charged with delivery of more than 400 grams of diazepam, but he entered into a plea agreement with the State by which he agreed to plead guilty to simple possession in exchange for a two-year sentence.
Acknowledging the contractual nature of plea bargains, we have additionally stated that, in deciding between specific performance of the plea agreement or withdrawal of the plea, it is necessary not only to consider the mutual advantage, but also not to alter “the tenor of the ‘mutual obligation’ entered into by the parties,” or to “create a new bargain not contemplated by the parties or the trial court when it accepted the plea agreement and entered its judgment accordingly.” Adkins,
In the present case, appellant has successfully challenged his conviction as void due to his sentence exceeding that which was statutorily permissible. Thomas,
In the course of reaching this conclusion, we acknowledge appellant’s argument that upholding his guilty plea and reversing only as to punishment would not actually result in an unjust windfall to him because the punishment range was not a binding element of the agreement. We, however, are unpersuaded by this argument. Appellant contends that there was no written plea agreement beyond the printed form admonishments, so the terms of the agreement must be deduced from the record. We have said, “Appellate courts look to the written agreement, as well as the formal
[Court] Well, [appellant], it is my understanding that what you are intending to do today is waive a jury trial on this case, waive your rights to—to that jury trial and plead guilty to the lesser included offense of state jail felony theft enhanced to a second-degree felony because of two prior pen trips. Is that correct?
[Appellant] Yes.
[Court] Now, there is no agreement— there’s no agreed upon sentence recommendation commonly called a plea bargain agreement. The State would likely be asking for one thing. You would likely be asking for something else. The Court could do anything. I could defer adjudication, placing you on community supervision. I could find you guilty and give you a sentence of 10 years or less and probate that. I could find you guilty and sentence you to just 2 years to do or 20 years to do or anything in between. You understand all my options, right?
[Appellant] Yes, sir.
Thus, the record indicates that appellant and the State contemplated a punishment within the range applicable to a second-degree felony. Under these circumstances, we conclude that the applicable range of punishment constituted a material element of the plea agreement and, therefore, because that portion of the plea agreement resulted in an illegal sentence and is unenforceable, the proper remedy is to set aside the agreement. See Shannon,
III. Conclusion
The court of appeals correctly held that the sentence imposed by the trial court under the plea agreement in this case was illegal. However, the remedy chosen by the court of appeals to address the illegal sentence ignores the mutual benefit and detriment assumed by appellant and the State in resolving this case at the trial level through a negotiated plea agreement. Accordingly, we reverse the court of appeals’s judgment that had remanded this case for a new punishment hearing, and we set aside appellant’s guilty plea and remand this case to the trial court for appellant to answer the charges set forth in the indictment, thereby returning both parties to their original positions.
Notes
. In its ground for review, the State asks,
What is the proper remedy when the defendant and the State "charge bargain” for an open plea of guilty to a lesser-included offense and the trial judge imposes an illegal sentence?
. This view was mistaken because, pursuant to Penal Code Section 12.42(d), appellant’s prior state-jail felony burglary conviction was not available to enhance his third-degree felony charge for engaging in organized criminal activity. Tex. Penal Code § 12.42(d).
