delivered the opinion of the Court.
In this appeal, a governmental entity asks the Court to declare void a decades-old final money judgment on grounds that the law has changed regarding the entity’s sovereign immunity.
All things, even litigation, must come to an end.
Favoring finality over uncertainty, we affirm the judgment of the court of appeals.
I. Background
In 1992, Shields Brothers, Inc. sued the Engelman Irrigation District, a governmental entity, alleging Engelman had breached a contract to deliver water to Shields. Engelman contended the trial court lacked subject-matter jurisdiction because Engelman had governmental immunity. In response, Shields relied on Missouri Pacific Railroad Co. v. Brownsville Navigation District, where we held that statutes providing a governmental entity may “sue and be sued” effected a waiver of sovereign immunity.
But Engelman did not pay the Engel-man I judgment.
In 2006, while Engelman II was on appeal, we decided Tooke v. City of Mexia,
In 2010, Engelman brought the pending suit, Engelman III, in the 93rd District Court of Hidalgo County. Engelman sought a declaratory judgment that the Engelman I judgment was void under Tooke. Shields filed a counterclaim asking the court to order Engelman’s board of directors to levy, assess, and collect taxes to pay the Engelman I judgment. The trial court severed the counterclaim and rendered judgment denying Engelman’s claim for declaratory relief. Engelman appealed this judgment, the Engelman III judgment. The court of appeals affirmed,
Engelman now argues to us, in this appeal of the Engelman III judgment, that it is entitled to relief from the Engelman I judgment. Engelman contends that Tooke should be applied retroactively, and that under sovereign-immunity law as explicated in Tooke, Engelman was always immune from Shields’s breach-of-contract claim. Engelman argues that its immunity deprived the trial court in Engelman I of subject-matter jurisdiction, thus voiding the Engelman I judgment.
II. Discussion
A. Retroactivity and Res Judicata
A judicial decision generally applies retroactively.
But retroactive application of a judicial decision does not generally extend to allow reopening a final judgment where all direct appeals have been exhausted.
There is nothing novel to Texas law in this regard. It is consistent with American law generally.
The reason for not allowing collateral attack on a final judgment is that such an attack would run squarely against principles of res judicata that are essential to a rational and functioning judicial system. “Res judicata bars the relitigation of claims that have been finally adjudicated or that could have been litigated in the prior action.”
The principle of res adjudicata is founded in public policy and is as old as English jurisprudence. Fundamentally its purpose is to expedite justice by putting an end to litigation; and to preserve the sanctity of the judgments of the courts by making them immune to collateral attack. Once a court has exercised its functions of decision on an issue over which it has jurisdiction, and that decision becomes final, the parties thereto and their privies cannot escape its binding effect. Lacking this anchorage of finality a judicial system would be little more than a rule of fiat.... It must be borne in mind that the purpose of the law remains constant to prevent the failure of justice as a result of permitting the retrial between the same parties or their privies of a cause of action or of an issue which has been finally disposed of.31
Ordinarily, therefore, a final judgment is the end point of litigation.
B. Subject-Matter Jurisdiction and Sovereign Immunity
However, an element of res judi-cata is “a prior final judgment on the merits by a court of competent jurisdiction.”
Which leads us to the crux of this case. Engelman argues that its immunity from suit deprived the Engelman I trial court of subject-matter jurisdiction. Hence, the judgment in Engelman I is void and subject to collateral attack in the pending suit, Engelman III. We disagree.
It is true we have stated that sovereign immunity is a jurisdictional bar. For exam-
It is important to recognize the context of our statements in these cases. In Houston Belt and Miranda, we held that sovereign immunity concerns jurisdiction and therefore “is properly asserted in a plea to the jurisdiction.”
The issue before us has not been decided. In Rusk, we reached our holding “regardless of whether immunity equates to a lack of subject-matter jurisdiction for all purposes.”
[T]he Court does not equate immunity to a lack of subject-matter jurisdiction .... There are important differences between immunity from suit and lack of subject-matter jurisdiction. For one thing, the government can waive immunity from suit, either for broad classes of claims or on a case-by-case basis. But it cannot waive subject-matter jurisdiction.... For another, while a court is obliged to examine its subject-matter jurisdiction on its own in every case, we have never suggested that a court should raise immunity on its own whenever the government is sued.44
And Justice Lehrmann, concurring in Houston Belt, and concurring and dissenting in Rusk, warned against equating sovereign immunity and lack of subject-matter jurisdiction for all purposes, specifically flagging the result Engelman seeks today:
Holding that sovereign immunity so implicates subject-matter jurisdiction that the final judgment against Engelman can be challenged by collateral attack in a later proceeding would run counter to the trend of Texas law and of American jurisprudence generally. In Dubai Petroleum Co. v. Kazi, we interpreted a statute allowing certain injury claims by a foreigner if his country of citizenship has equal treaty rights with the United States. We held that this provision did not limit the trial court’s subject-matter jurisdiction, and noted the modern trend followed in the Second Restatement of Judgments of “re-ducting] the vulnerability of final judgments to attack on the ground that the tribunal lacked subject matter jurisdiction.”
While the issue in Dubai was quite different from the one presented today, we find the analysis relevant. The Court recognized a trend toward limiting the characterization of a defense as jurisdictional, because such a label leaves final judgments open to perpetual collateral attack. The Court turned to and quoted the treatment of res judicata found in sections 11 and 12 of the Second Restatement of Judgments. Section 12 notes the “traditional doctrine was that a judgment of a court shown to have lacked subject matter jurisdiction was ‘void,’ ” but adopts a “modern rule on conclusiveness of determinations of subject matter jurisdiction” that “gives finality substantially greater weight.”
This result is all the more compelled by two circumstances the Restatement recognizes. First, it indicates that section 12’s general rule is particularly warranted where the issue of subject-matter jurisdiction was actually litigated in the first proceeding, as happened here. “When the question of the tribunal’s jurisdiction is raised in the original action, in a modern procedural regime there is no reason why the determination of the issue should not thereafter be conclusive under the usual
It is one thing to characterize sovereign immunity as jurisdictional so as to provide a defendant with certain procedural advantages in an ongoing case, such as avoiding a waiver of the defense or allowing a challenge of the immunity ruling by interlocutory appeal. In today’s case, however, we are asked to jettison the foundational principle of res judicata, by allowing Engelman to reopen a final judgment that would otherwise operate as claim preclusion. We decline to allow this result. Such a result is not compelled by our precedent, and goes against the trend in our State and elsewhere of limiting the vulnerability of final judgments to attack on grounds that the trial court lacked subject-matter jurisdiction. Further, such a result undermines respect for the finality of judgments, an anchoring principle of any functioning and efficient judicial system.
C. Finality and the Separation of Powers
Engelman devotes much of its briefing to arguing that we must apply Tooke retroactively because a contrary holding would offend separation-of-pbwers principles by denying the Legislature its authority to waive sovereign immunity! We are unpersuaded.
We have recognized that the decision to waive sovereign immunity is largely left to the Legislature.
In holding that the Engelman I judgment should not be reopened by collateral attack, we are not depriving the Legislature of its role in waiving sovereign immunity so much as we are deciding the effect of a final judgment rendered by the judiciary. Deciding the effect of a court judgment is, we think, very much a matter that should be left to the courts.
D. Equitable Considerations and the Public Interest
Engelman makes what is essentially a plea on the equities, arguing that allowing the Engelman I judgment to stand would compel an inequitable result that disserves the public interest. To some extent Engel-man relies on section 28 of the Second Restatement of Judgments, providing exceptions to issue preclusion where “a new determination is warranted in order to take account of an intervening change in the applicable legal context or otherwise to avoid inequitable administration of the laws,” or where “[tjhere is a clear and convincing need for a new determination of the issue [ ] because of the potential adverse impact of the determination on the public interest.”
Section 28 of the Restatement offers exceptions to the general rule of issue preclusion found in section 27. Section 27, however, provides a general rule of issue preclusion, also known as collateral estop-
Further, recognizing the continuing validity of the Engelman I judgment is hardly so inequitable or contrary to the public interest as to compel abandoning principles of res judicata and allowing Engelman to avoid that judgment. Enforcing the pri- or judgment would simply mean that En-gelman must answer for a breach of contract in damages
III. Conclusion
Sovereign immunity implicates a court’s subject-matter jurisdiction, but their contours are not coextensive. This long-final judgment cannot be upended via collateral attack.
We affirm the judgment of the court of appeals.
. For convenience, our references to “sovereign immunity” refer to the related doctrines of sovereign immunity and governmental immunity. See City of Hous. v. Williams, 353 S.W.3d 128, 134 n.5 (Tex. 2011) (explaining that governmental immunity protects political subdivisions of the State).
. 197 S.W.3d 325 (Tex. 2006).
. See Geoffrey Chaucer, Troilus and Criseyde, (Book III, line 615).
. 453 S.W.2d 812, 813 (Tex. 1970).
. Tex. Water Code § 58.098, repealed by Act of May 25, 1995, 74th Leg., R.S., ch. 715, § 47, 1995 Tex. Gen. Laws 3755, 3803. Section 58.098 was replaced by section 49.066.
. 960 S,W.2d at 348.
. Engelman Irrigation Dist. v. Shields Bros., Inc., 989 S.W.2d 360 (Tex. 1998) (per cu-riam).
. However, the briefs indicate that Shields assigned one-sixth of the judgment to a shareholder, who in turn assigned this interest to a bank. Engelman then purchased this interest from the bank at a discount.
. Engelman Iirigation Dist. v. Tex. Comm'n on Envtl. Quality, 251 S.W.3d 184, 188 (Tex. App.—Austin 2008, no pet.).
. 197 S.W.3d 325 (Tex. 2006).
. Id. at 342.
. Engelman II, 251 S.W.3d at 193 n.6.
. - S.W.3d -, 2015 WL 233491 (Tex. App.—Corpus Christi 2015).
. Id. at-.
. Carrollton-Farmers Branch Indep. Sch. Dist. v. Edgewood Indep. Sch. Dist., 826
. Tooke, 197 S.W.3d at 346.
. E.g., Harris Cíy. Hosp. Dist. v. Tomball Reg’l Hosp., 283 S.W.3d 838, 843 (Tex. 2009); Abilene Hous. Auth. v. Gene Duke Builders, Inc., 226 S.W.3d 415, 416-17 (Tex. 2007) (per curiam).
. Throughout our discussion, reference to a “final judgment” means one where the trial court has rendered a final judgment and all direct appeals have been exhausted.
. 651 S.W.2d 249, 251 & n.2 (Tex. 1983).
. Id. at 254.
. 649 S.W.2d 610, 612 (Tex. 1983),
. Id. (italics omitted).
. "Once a court announces a new rule of law, the integrity of judicial review requires application of the new rule to all similar cases pending on review in which the issue had been preserved for appellate review, even if the decision constitutes a clear break with past precedent. Thus, generally, judicial decisions are applied retroactively to all civil matters that have not reached final judgment.” 20 Am. Jur. 2d Courts § 149 (2016) (footnotes omitted).
. E.g., Chicot Cty. Drainage Dist. v. Baxter State Bank, 308 U.S. 371, 376, 60 S.Ct. 317, 84 L.Ed. 329 (1940); Teague v. Lane, 489 U.S. 288, 310, 109 S.Ct. 1060, 103 L.Ed.2d 334 (1989).
. Harper v. Va. Dep’t of Taxation, 509 U.S. 86, 97, 113 S.Ct. 2510, 125 L.Ed.2d 74 (1993).
. James B. Beam Distilling Co. v. Georgia, 501 U.S. 529, 541, 111 S.Ct. 2439, 115 L.Ed.2d 481 (1991) (announcing judgment of the Court) (citing Chicot).
. Igal v. Brightstar Info. Tech. Grp., Inc., 250 S.W.3d 78, 86 (Tex. 2008), superseded by statute as recognized in Prairie View A&M Univ. v. Chatha, 381 S.W.3d 500, 518 (Tex. 2012).
. Barr v. Resolution Tr. Corp., 837 S.W.2d 627, 629 (Tex. 1992).
. Stanolind Oil & Gas Co. v. State, 136 Tex. 5, 145 S.W.2d 569, 570 (1940).
. 129 Tex. 413, 107 S.W.2d 564, 567 (1937).
. Igal, 250 S.W.3d at 86.
. Id. at 82.
. In re United Servs. Auto. Ass’n, 307 S.W.3d 299, 309 (Tex. 2010); Alfonso v. Skadden, 251 S.W.3d 52, 55 (Tex. 2008) (per curiam).
. 133 S.W.3d 217, 224 (Tex. 2004).
. 487 S.W.3d 154 (Tex. 2016).
. 381 S.W.3d 528 (Tex. 2012).
. 392 S.W.3d 88 (Tex. 2012).
. Hous. Belt, 487 S.W.3d at 160; Manbeck, 381 S.W.3d at 530; Rusk, 392 S.W.3d at 95.
. Hous. Belt, 487 S.W.3d at 160; Miranda, 133 S.W.3d at 226.
. See Manbeck, 381 S.W.3d at 530; Rusk, 392 S.W.3d at 94.
. Rusk, 392 S.W.3d at 95.
. Id. (quoting Reata Constr. Corp. v. City of Dall., 197 S.W.3d 371, 381 (Tex. 2006) (Blister, J., concurring)).
. Id. at 102 (Hecht, J., concurring) (footnotes omitted).
. Id. at 108 (Lehrmann, J., concurring and dissenting); see also Hous. Belt, 487 S.W.3d at 170 (Lehrmann, J., concurring).
. 12 S.W,3d 71, 76 (Tex. 2000) (quoting Restatement (Second) of Judgments § 11 cmt. e (1982)).
. Chatha, 381 S.W.3d at 511; United Sens. Auto. Ass’n, 307 S.W.3d at 306; City of DeSoto v. White, 288 S.W.3d 389, 393 (Tex, 2009); Igal, 250 S.W.3d at 83; Hubenak v. San Jacin-to Gas Transmission Co., 141 S.W.3d 172, 182 (Tex. 2004).
. Dubai, 12 S.W.3d at 76.
. Id. (quoting Restatement (Second) of Judgments § 12 cmt. b (1982)).
. Restatement (Second) of Judgments § 12 cmts. a, b (1982).
. Id. § 12.
. Id. § 12 cmt. c. See also id. § 12 cmt. a (noting that the modern rule gives less weight to finality "when the parties have not contested jurisdiction,” as "in the case of a default judgment”). While the fact that the issue was actually litigated triggers an additional issue-preclusion hurdle to overcoming the final judgment, we do not mean to suggest that the claim-preclusion hurdle is not sufficient by itself.
. Id. § 12 cmt. e. See also id. § 12 cmt. a (noting that modem rule gives less weight to finality "when the tribunal is one of limited legal capacity”).
. "A Texas district court ... is a court of general jurisdiction.” Dubai, 12 S.W.3d at 75.
. See Tooke, 197 S.W.3d at 332.
. Restatement (Second) of Judgments § 12(2) (1982).
. Brown & Gay Eng’g, Inc. v. Olivares, 461 S.W.3d 117, 122 (Tex. 2015).
. 514 U.S. 211, 223, 115 S.Ct. 1447, 131 L.Ed.2d 328 (1995).
. Id. at 222, 115 S.Ct. 1447 (quoting The Federalist No. 81, at 545 (Alexander Hamilton) (J. Cooke ed. 1961)),
. Id. at 228, 115 S.Ct. 1447 (emphasis in original). In this regard, we do not construe chapter 271 of the Local Government Code as applicable to this case, because the Engelman I judgment became final several years before the Legislature enacted chapter 271. Chapter 271, enacted in 2005, waives governmental immunity on certain contract claims. The statute is partially retroactive. Act of May 23, 2005, 79th Leg., R.S., ch. 604, § 2, 2005 Tex. Gen. Laws 1548, 1549; see also Tooke, 197 S.W.3d at 329, 344-45. Chapter 271, if applicable, would not waive sovereign immunity on Shields’s claim against Engelman because the jury only awarded damages for lost profits, and such damages are consequential damages that may not be recovered under the statute. See Tex. Local Gov’t Code § 271.153(b)(1); see also Tooke, 197 S.W.3d at 329-30, 346 (explaining that lost profits are consequential damages excluded from recovery under chapter 271). But we do not construe chapter 271 as operating on judgments such as the Engelman I judgment that became final years before the statute's enactment. Nothing in the Act’s wording or our analysis in Tooke suggests otherwise.
. Restatement (Second) of Judgments § 28(2), (5) (1982).
. We believe our analysis is consistent with a leading treatise on federal law. It finds section 12, comment c’s reference to a "substantial change in the applicable legal context” as warranting application of section 28 "clearly sound as to relitigation of the same issue with respect to a separate claim.” But "[i]f judgment is entered on the claim ... the values of res judicata seem so high that only the most extraordinarily compelling lack of jurisdiction should defeat the first judgment.” 18A Charles Alan Wright, Arthur R. Miller, & Edward H. Cooper, Federal Practice & Procedure § 4428 at n.18 (2002) (emphases added).
. In denying the petition for review in Engel-man I, we issued a per curiam opinion expressing "no opinion on whether an irrigation district’s obligation to deliver water under Chapter 58 of the Texas Water Code and related rules can be deemed a 'contract.' ” Engelman Irrigation Dist. v. Shields Bros., Inc., 989 S.W.2d 360, 360 (Tex. 1998) (per curiam). While we expressed reservations then as to whether Shields had a contract with Engelman, we think that issue has now been resolved by force of issue and claim preclusion. Shields sued for breach of contract and recovered under that theory.
.. See, e.g., Harris Cty. Flood Control Dist. v. Kerr, 499 S.W.3d 793, 804, 810 (Tex. 2016).
