delivered the opinion of the Court.
The question in this case is whether the Due Process Clause of the Fourteenth Amendment is violated when a state prosecutor carries out a threat made during plea negotiations to reindict the accused on more serious charges if he does not plead guilty to the offense with which he was originally charged.
I
The respondent, Paul Lewis Hayes, was indicted by a Fayette County, Ky., grand jury on a charge of uttering a forged instrument in the amount of $88.30, an offense then punishable by a term of 2 to 10 years in prison. Ky. Rev. Stat. §434.130 (1973) (repealed 1975). After arraignment, Hayes, his retained counsel, and the Commonwealth’s Attorney met in the presence of the Clerk of the Court to discuss a possible plea agreement. During these conferences the prosecutor offered to recommend a sentence of five years in prison if Hayes would plead guilty to the indictment. He also said that if Hayes did not plead guilty and “save the court the inconvenience and necessity of a trial,” he would return to the grand jury to seek an indictment under the Kentucky Habitual Criminal Act,1 then Ky. Rev. Stat. § 431.190 (1973) (repealed 1975), which would subject Hayes to a mandatory sentence of *359life imprisonment by reason of his two prior felony convictions.2 Hayes chose not to plead guilty, and the prosecutor did obtain an indictment charging him under the Habitual Criminal Act. It is not disputed that the recidivist charge was fully justified by the evidence, that the prosecutor was in possession of this evidence at the time of the original indictment, and that Hayes’ refusal to plead guilty to the original charge was what led to his indictment under the habitual criminal statute.
A jury found Hayes guilty on the principal charge of uttering a forged instrument and, in a separate proceeding, further found that he had twice before been convicted of felonies. As required by the habitual offender statute, he was sentenced to a life term in the penitentiary. The Kentucky Court of Appeals rejected Hayes’ constitutional objections to the enhanced sentence, holding in an unpublished opinion that imprisonment for life with the possibility of parole was constitutionally permissible in light of the previous felonies of which Hayes had been convicted,3 and that the prosecutor’s decision to indict him as a habitual offender was a legitimate use of available leverage in the plea-bargaining process.
*360On Hayes’ petition for a federal writ of habeas corpus, the United States District Court for the Eastern District of Kentucky agreed that there had been no constitutional violation in the sentence or the indictment procedure, and denied the writ.4 The Court of Appeals for the Sixth Circuit reversed the District Court’s judgment. Hayes v. Cowan, 547 F. 2d 42. While recognizing “that plea bargaining now plays an important role in our criminal justice system,” id., at 43, the appellate court thought that the prosecutor’s conduct during the bargaining negotiations had violated the principles of Blackledge v. Perry, 417 U. S. 21, which “protected] defendants from the vindictive exercise of a prosecutor’s discretion.” 547 F. 2d, at 44. Accordingly, the court ordered that Hayes be discharged “except for his confinement under a lawful sentence imposed solely for the crime of uttering a forged instrument.”. Id., at 45. We granted certiorari to consider a constitutional question of importance in the administration of criminal justice. 431 U. S. 953.
II
It may be helpful to clarify at the outset the nature of the issue in this case. While the prosecutor did not actually obtain the recidivist indictment until after the plea conferences had ended, his intention to do SO' was clearly expressed at the outset of the plea negotiations. Hayes was thus fully informed of the true terms of the offer when he made his decision to plead not guilty. This is not a situation, therefore, where the prosecutor without notice brought an additional and more serious charge after plea negotiations relating, only to the original indictment had ended with the defendant’s insistence on pleading not guilty.5 As a practical matter, in short, this *361case would be no different if the grand jury had indicted Hayes as a recidivist from the outset, and the prosecutor had offered to drop that charge as part of the plea bargain.
The Court of Appeals nonetheless drew a distinction between “concessions relating to prosecution under an existing indictment,” and threats to bring more severe charges not contained in the original indictment — a line it thought necessary in order to establish a prophylactic rule to guard against the evil of prosecutorial vindictiveness.6 Quite apart from this chronological distinction, however, the Court of Appeals found that the prosecutor had acted vindictively in the present case since he had conceded that the indictment was influenced by his desire to induce a guilty plea.7 The ultimate conclusion of the Court of Appeals thus seems to have been that a prosecutor acts vindictively and in violation of due process of law whenever his charging decision is influenced by what he hopes to gain in the course of plea bargaining negotiations.
Ill
We have recently had occasion to observe: “Whatever might be the situation in an ideal world, the fact is that the guilty plea and the often concomitant plea bargain are important components of this country’s criminal justice sys*362tem. Properly administered, they can benefit all concerned.” Blackledge v. Allison, 431 U. S. 63, 71. The open acknowledgment of this previously clandestine practice has led this Court to recognize the importance of counsel during plea negotiations, Brady v. United States, 397 U. S. 742, 758, the need for a public record indicating that a plea was knowingly and voluntarily made, Boykin v. Alabama, 395 U. S. 238, 242, and the requirement that a prosecutor’s plea-bargaining promise must be kept, Santobello v. New York, 404 U. S. 257, 262. The decision of the Court of Appeals in the present case, however, did not deal with considerations such as these, but held that the substance of the plea offer itself violated the limitations imposed by the Due Process Clause of the Fourteenth Amendment. Cf. Brady v. United States, supra, at 751 n. 8. For the reasons that follow, we have concluded that the Court of Appeals was mistaken in so ruling.
IV
This Court held in North Carolina v. Pearce, 395 U. S. 711, 725, that the Due Process Clause of the Fourteenth Amendment “requires that vindictiveness against a defendant for having successfully attacked his first conviction must play no part in the sentence he receives after a new trial.” The same principle was later applied to prohibit a prosecutor from reindicting a convicted misdemeanant on a felony charge after the defendant had invoked an appellate remedy, since in this situation there was also a “realistic likelihood of Vindictiveness.’ ” Blackledge v. Perry, 417 U. S., at 27.
In those cases the Court was dealing with the State’s unilateral imposition of a penalty upon a defendant who had chosen to exercise a legal right to attack his original conviction — a situation “very different from the give-and-take negotiation common in plea bargaining between the prosecution and defense, which arguably possess relatively equal bargaining power.” Parker v. North Carolina, 397 U. S. 790, *363809 (opinion of Brennan, J.). The Court has emphasized that the due process violation in cases such as Pearce and Perry lay not in the possibility that a defendant might be deterred from the exercise of a legal right, see Colten v. Kentucky, 407 U. S. 104; Chaffin v. Stynchcombe, 412 U. S. 17, but rather in the danger that the State might be retaliating against the accused for lawfully attacking his conviction. See Blackledge v. Perry, supra, at 26-28.
To punish a person because he has done what the law plainly allows him to do is a due process violation of the most basic sort, see North Carolina v. Pearce, supra, at 738 (opinion of Black, J.), and for an agent of the State to< pursue a course of action whose objective is to penalize a person’s reliance on his legal rights is “patently unconstitutional.” Chaffin v. Stynchcombe, supra, at 32-33, n. 20. See United States v. Jackson, 390 U. S. 570. But in the “give-and-take” of plea bargaining, there is no such element of punishment or retaliation so long as the accused is free to accept or reject the prosecution’s offer.
Plea bargaining flows from “the mutuality of advantage” to defendants and prosecutors, each with his own reasons for wanting to avoid trial. Brady v. United States, supra, at 752. Defendants advised by competent counsel and protected by other procedural safeguards are presumptively capable of intelligent choice in response to prosecutorial persuasion, and unlikely to be driven to false self-condemnation. 397 U. S., at 758. Indeed, acceptance of the basic legitimacy of plea bargaining necessarily implies rejection of any notion that a guilty plea is involuntary in a constitutional sense simply because it is the end result of the bargaining process. By hypothesis, the plea may have been induced by promises of a recommendation of a lenient sentence or a reduction of charges, and thus by fear of the possibility of a greater penalty upon conviction after a trial. See ABA Project on Standards for Criminal Justice, Pleas of Guilty § 3.1 (App. Draft 1968); *364Note, Plea Bargaining and the Transformation of the Criminal Process, 90 Harv. L. Rev. 564 (1977). Cf. Brady v. United States, supra, at 751; North Carolina v. Alford, 400 U. S. 25.
While confronting a defendant with the risk of more severe punishment clearly may have a “discouraging effect on the defendant’s assertion of his trial rights, the imposition of these difficult choices [is] an inevitable” — and permissible — '“attribute of any legiiimate system which tolerates and encourages the negotiation of pleas.” Chaffin v. Stynchcombe, supra, at 31. It follows that, by tolerating and encouraging the negotiation of pleas, this Court has necessarily accepted as constitutionally legitimate the simple reality that the prosecutor’s interest at the bargaining table is to persuade the defendant to forgo his right to plead not guilty.
It is not disputed here that Hayes was properly chargeable under the recidivist statute, since he had in fact been convicted of two previous felonies. In our system, so long as the prosecutor has probable cause to believe that the accused committed an offense defined by statute, the decision whether or not to prosecute, and what charge to file or bring before a grand jury, generally rests entirely in his discretion.8 Within the limits set by the legislature’s constitutionally valid definition of chargeable offenses, “the conscious exercise of some selectivity in enforcement is not in itself a federal constitutional violation” so long as “the selection was [not] deliberately based upon an unjustifiable standard such as race, religion, or other arbitrary classification.” Oyler v. Boles, 368 U. S. 448, 456. To hold that the prosecutor’s desire to induce a guilty plea is an “unjustifiable standard,” which, like race or religion, *365may play no part in his charging decision, would contradict the very premises that underlie the concept of plea bargaining itself. Moreover, a rigid constitutional rule that would prohibit a prosecutor from acting forthrightly in his dealings with the defense could only invite unhealthy subterfuge that would drive the practice of plea bargaining back into the shadows from which it has so recently emerged. See Blackledge v. Allison, 431 U. S., at 76.
There is no doubt that the breadth of discretion that our country's legal system vests in prosecuting attorneys carries with it the potential for both individual and institutional abuse.9 And broad though that discretion may be, there are undoubtedly constitutional limits upon its exercise. We hold only that the course of conduct engaged in by the prosecutor in this case, which no more than openly presented the defendant with the unpleasant alternatives of forgoing trial or facing charges on which he was plainly subject to prosecution, did not violate the Due Process Clause of the Fourteenth Amendment.
Accordingly, the judgment of the Court of Appeals is
Reversed.