Justice Powell
delivered the opinion of the Court.
The question presented is whether the habeas corpus statute, 28 U. S. C. §2254, confers jurisdiction on the federal courts to consider collateral challenges to state-court judgments involuntarily terminating parental rights.
I
The facts of this case are described in detail in In re William L., 477 Pa. 322, 383 A. 2d 1228, cert. denied sub nom. Lehman v. Lycoming County Children’s Services, 439 U. S. 880 (1978), the Pennsylvania Supreme Court decision terminating the parental rights of petitioner Marjorie Lehman with respect to three sons born in 1963, 1965, and 1969. In 1971, Ms. Lehman discovered that she was pregnant again. Because of housing and other problems related to the care of her sons, Ms. Lehman voluntarily placed them in the legal custody of the Lycoming County Children’s Services Agency, and it placed them in foster homes.
. Although Ms. Lehman visited her sons monthly, she did not request their return until 1974. At that point, the Lycoming County Children’s Services Agency initiated parental termination proceedings. In those proceedings, the Orphan’s Court Division of the Lycoming County Court of Common Pleas heard testimony from Agency caseworkers, a psychologist, nutrition aides, petitioner, and the three sons. The judge concluded: “[I]t is absolutely clear to the court that, by reason of her very limited social and intellectual development combined with her five-year separation from the children, the mother is incapable of providing minimal care, control and supervision for the three children. Her incapacity cannot and will not be remedied.” In re Lehman, Nos. 2986, 2987, and 2988, p. 4 (Ct. Common Pleas, Lycoming County, Pa., June 3, 1976). The court therefore declared that petitioner’s parental rights respecting the three sons were terminated.
The Pennsylvania Supreme Court affirmed the termination order based on “parental incapacity, which does not involve parental misconduct.” In re William L., supra, at 331, 383 A. 2d, at 1232. It held that the legislature’s power to protect the physical and emotional needs of children authorized termination in the absence of serious harm or risk of serious harm to the children and in the absence of parental misconduct. The court stressed that, “[i]n the instant cases, the basis for termination is several years of demonstrated parental incapacity . . . .” Ibid. It also held that the statute was not unconstitutionally vague either on its face or as applied.
Petitioner sought this Court’s review in a petition for certiorari rather than by appeal. We denied the petition. Lehman v. Lycoming County Children’s Services, 439 U. S. 880 (1978). Petitioner then filed the instant proceeding on January 16, 1979, in the United States District Court for the Middle District of Pennsylvania, seeking a writ of habeas corpus pursuant to 28 U. S. C. §§ 2241 and 2254. Petitioner requested (i) a declaration of the invalidity of the Pennsylvania statute under which her parental rights were terminated; (ii) a declaration that petitioner was the legal parent of the children; and (iii) an order releasing the children to her custody unless within 60 days an appropriate state court judicially determined that the best interest of the children required that temporary custody remain with the State.
The District Court dismissed the petition without a hearing. Relying primarily on Sylvander v. New England Home for Little Wanderers, 584 F. 2d 1103 (CA1 1978), the court concluded that “the custody maintained by the Respondent over the three Lehman children is not that type of custody to which the federal habeas corpus remedy may be addressed.” Lehman v. Lycoming County Children’s Services Agency, Civ. No. 79-65 (MD Pa. 1979), reprinted in App. to Pet. for Cert. 135a, 147 a.
Sitting en banc, the Court of Appeals for the Third Circuit affirmed the District Court’s order of dismissal by a divided vote of six to four. 648 F. 2d 135 (1981). No majority opinion was written. A plurality of four, in an opinion written by Judge Garth, concluded that “disputes of the nature addressed here and which essentially involve no more than the question of who shall raise a child to maturity, do not implicate the federal interest in personal liberty sufficiently to warrant the extension of federal habeas corpus.” Id., at 146. In support of this conclusion, Judge Garth reasoned that “[i]t is not the liberty interest of the children that is sought to be protected in such a case, but only the right of the particular parent to raise them.” Id., at 140 (footnote omitted).
A second plurality of four, in an opinion written by Judge Adams wrote that it “would appear to be both unwise and impolitic for the federal courts to uncover a whole new font of jurisdiction. . . .” Id., at 151. He would have disposed of the case on the ground that Ms. Lehman did not have standing to assert a habeas corpus action on behalf of her children. See id., at 151-155. This view was based on the conclusion that once a parent’s rights have been terminated in a state proceeding, a parent is no longer presumed to represent the interest of the child. See id., at 153-154.
The question presented to this Court can be stated more fully as whether federal habeas corpus jurisdiction, under § 2254, may be invoked to challenge the constitutionality of a state statute under which a State has obtained custody of children and has terminated involuntarily the parental rights of their natural parent. As this is a question of importance not heretofore considered by this Court, and one over which the Circuits are/ divided, we granted certiorari. 454 U. S. 813 (1981). We now affirm.
II
A
Petitioner seeks habeas corpus collateral review by a federal court of the Pennsylvania decision. Her application was filed under 28 U. S. C. § 2254(a):
“The Supreme Court, a Justice thereof, a circuit judge, or a district court shall entertain an application for a writ of habeas corpus in behalf of a person in custody pursuant to the judgment of a State court only on the ground that he is in custody in violation of the Constitution or laws or treaties of the United States.”
Although the language of § 2254(a), especially in light of § 2241, suggests that habeas corpus is available only to challenge the convictions of prisoners actually in the physical custody of the State, three modern cases have extended it to other situations involving challenges to state-court decisions. The first of these cases is Jones v. Cunningham, 371 U. S. 236 (1963), in which the Court allowed a parolee to challenge his conviction by a habeas petition. The Court considered the parolee in “custody” for purposes of § 2254(b) because “the custody and control of the Parole Board involve significant restraints on petitioner’s liberty . . . which are in addition to those imposed by the State upon the public generally.” 371 U. S., at 242. And in Carafas v. LaVallee, 391 U. S. 234 (1968), the Court allowed the writ in a challenge to a state-court judgment even though the prisoner, incarcerated at the time the writ was filed, had finished serving his sentence during the proceedings. The custody requirement had, of course, been met at the time the writ was filed, and the case was not moot because Carafas was subject to “‘collateral consequences’” as a result of his conviction, id., at 237, and “is suffering, and will continue to suffer, serious disabilities . . . .” Id., at 239. Most recently, in Hensley v. Municipal Court, 411U. S. 345 (1973), the Court allowed the writ to be used to challenge a state-court conviction even though the defendant had been released on his own recognizance after sentencing but prior to the commencement of his incarceration. The Court held that the defendant was in the custody of the State for purposes of § 2254(b) because he was “subject to restraints ‘not shared by the public generally,”’ 411 U. S., at 351 (citation omitted) — indeed, his arrest was imminent.
Thus, although the scope of the writ of habeas corpus has been extended beyond that which the most literal reading of the statute might require, the Court has never considered it a generally available federal remedy for every violation of federal rights. Instead, past decisions have limited the writ’s availability to challenges to state-court judgments in situations where — as a result of a state-court criminal conviction — a petitioner has suffered substantial restraints not shared by the public generally. In addition, in each of these cases the Court considered whether the habeas petitioner was “in custody” within the meaning of §2254.
Ms. Lehman argues that her sons are involuntarily in the custody of the State for purposes of § 2254 because they are in foster homes pursuant to an order issued by a state court. Her sons, of course, are not prisoners. Nor do they suffer any restrictions imposed by a state criminal justice system. These factors alone distinguish this case from all other cases in which this Court has sustained habeas challenges to state-court judgments. Moreover, although the children have been placed in foster homes pursuant to an order of a Pennsylvania court, they are not in the “custody” of the State in the sense in which that term has been used by this Court in determining the availability of the writ of habeas corpus. They are in the “custody” of their foster parents in essentially the same way, and to the same extent, other children are in the custody of their natural or adoptive parents. Their situation in this respect differs little from the situation of other children in the public generally; they suffer no unusual restraints not imposed on other children. They certainly suffer no restraint on liberty as that term is used in Hensley and Jones, and they suffer no “collateral consequences” — like those in Carafas — sufficient to outweigh the need for finality. The “custody” of foster or adoptive parents over a child is not the type of custody that traditionally has been challenged through federal habeas. Ms. Lehman simply seeks to relitigate, through federal habeas, not any liberty interest of her sons, but the interest in her own parental rights.
Although a federal habeas corpus statute has existed ever since 1867, federal habeas has never been available to challenge parental rights or child custody. Indeed, in two cases, the Court refused to allow the writ in such instances. Matters v. Ryan, 249 U. S. 375 (1919); In re Burrus, 136 U. S. 586 (1890). These decisions rest on the absence of a federal question, but the opinions suggest that federal habeas corpus is not available to challenge child custody. Moreover, federal courts consistently have shown special solicitude for state interests “in the field of family and family-property arrangements.” United States v. Yazell, 382 U. S. 341, 352 (1966). Under these circumstances, extending the federal writ to challenges to state child-custody decisions — challenges based on alleged constitutional defects collateral to the actual custody decision — would be an unprecedented expansion of the jurisdiction of the lower federal courts.
B
Federalism concerns and the exceptional need for finality in child-custody disputes argue strongly against the grant of Ms. Lehman’s petition. The writ of habeas corpus is a major exception to the doctrine of res judicata, as it allows relitigation of a final state-court judgment disposing of precisely the same claims. Because of this tension between the State’s interest in finality and the asserted federal interest, federal courts properly have been reluctant to extend the writ beyond its historic purpose. As Judge Campbell noted in Sylvander v. New England Home for Little Wanderers:
“Federal habeas involves a substantial thrust by the federal system into the sphere normally reserved to the states and hence a change in the federal-state balance. This is so because the federal habeas remedy, as recently fashioned, offers a federal forum regardless of what state proceedings have already taken place and in effect allows a single federal district judge to overrule the judgment of the highest state court, unfettered by the constraints of collateral estoppel and res judicata.” 584 F. 2d, at 1111-1112.
The State’s interest in finality is unusually strong in child-custody disputes. The grant of federal habeas would prolong uncertainty for children such as the Lehman sons, possibly lessening their chances of adoption. It is undisputed that children require secure, stable, long-term, continuous relationships with their parents or foster parents. There is little that can be as detrimental to a child’s sound development as uncertainty over whether he is to remain in his current “home,” under the care of his parents or foster parents, especially when such uncertainty is prolonged. Extended uncertainty would be inevitable in many cases if federal courts had jurisdiction to relitigate state custody decisions.
l — l 1 — I
Petitioner argues that habeas corpus should be available to her because it has been used as a procedure in child-custody cases in various States and in England. She notes that, in Jones v. Cunningham, 371 U. S., at 238-240, the Court indicated that in construing the habeas statute, reference may be made to the common law and to practices in the States and in England. It is true that habeas has been used in child-custody cases in England and in many of the States. See id., at 239-240, and nn. 8, 12, and 13, citing Ford v. Ford, 371 U. S. 187 (1962); Boardman v. Boardman, 135 Conn. 124, 138, 62 A. 2d 521, 528 (1948); Ex parte Swall, 36 Nev. 171, 174, 134 P. 96, 97 (1913); Ex parte M‘Clellan, 1 Dowl. 81 (K. B. 1831); Earl of Westmeath v. Countess of Westmeath, as set out in reporter’s footnote in Lyons v. Blenkin, 1 Jac. 245, 264, 37 Eng. Rep. 842, 848 (Ch. 1821). As these cases illustrate, the term “custody” in 28 U. S. C. §2255 — authorizing federal-court collateral review of federal decisions — could be construed to include the type of custody the Lehman children are subject to, since they are in foster homes pursuant to court orders. But reliance on what may be appropriate within the federal system or within a state system is of little force where — as in this case — a state judgment is attacked collaterally in a federal court. It is one thing to use a proceeding called “habeas corpus” in resolving child-custody disputes within a single system obligated to resolve such disputes. The question in such a case may be which procedure is most appropriate. The system is free to set time limits on the bringing of such actions as well as to impose other requirements to ensure finality and a speedy resolution of disputes in cases involving child custody or termination of parental rights. In this case, however, petitioner would have the federal judicial system entertain a writ that is not time-barred to challenge collaterally a final judgment entered in a state judicial system. In Sylvander v. New England Home for Little Wanderers, the Court of Appeals for the First Circuit gave a compelling answer to this argument:
“Federal habeas when applied to persons under state control is a procedure of unique potency within the federal-state framework, having far different and more far-reaching consequences than a state’s utilization of habeas within its own system. State utilization of habeas to test the legal custody of a child is part of the fabric of its reserved jurisdiction over child custody matters. If a habeas remedy were not provided, some other procedure would be needed to effectuate the state’s substantive interest in these relationships. It is purely a matter of procedural detail whether the remedy is called ‘habeas’ or something else. The federal government, however, has no parallel substantive interest in child custody matters that federal habeas would serve. The sole federal interest is in the constitutional issues collateral to such disputes. At bottom, the question is whether these constitutional issues can be adequately raised through the usual channels — appeal, certiorari and the civil rights statutes — or whether the vehicle of federal habeas, with its unique features, is required.” 584 F. 2d, at 1111.
IV
The considerations in a child-custody case are quite different from those present in any prior case in which this Court has sustained federal-court jurisdiction under §2254. The federal writ of habeas corpus, representing as it does a profound interference with state judicial systems and the finality of state decisions, should be reserved for those instances in which the federal interest in individual liberty is so strong that it outweighs federalism and finality concerns. Congress has indicated no intention that the reach of § 2254 encompass a claim like that of petitioner. We therefore hold that § 2254 does not confer federal-court jurisdiction. The decision below, affirming the denial of a writ of habeas corpus, therefore is affirmed.
It is so ordered.
Petitioner has never been married. The fathers to these sons voluntarily have relinquished their parental rights in state-court proceedings.
There was no evidence that any of the sons wanted to return to their mother. See Tr. 82, 117-118, 122-125, 127-129.
It has now been over a decade since the sons were removed from the custody of their mother. Frank, the oldest, is now 18, and the case is moot with respect to him since he is free to seek adoption by anyone, including his natural mother. See Tr. of Oral Arg. 25-26. The other two sons, Bill and Mark, are now 12 and 16 respectively.
The judge relied on the Pennsylvania statute which provides, in relevant part:
“The rights of a parent in regard to a child may be terminated after a petition filed on any of the following grounds:
“(2) The repeated and continued incapacity, abuse, neglect or refusal of the parent has caused the child to be without essential parental care, control or subsistence necessary for his physical or mental well-being and the conditions and causes of the incapacity, abuse, neglect or refusal cannot or will not be remedied by the parent.” 23 Pa. Cons. Stat. § 2511(a) (1980).
This decision appeared to have been a strategic one, making possible, in the event this Court did not grant plenary review, the filing of a habeas corpus petition in federal district court without any problem of res judicata on the federal issues as a result of this Court’s summary affirmance or dismissal of the appeal for want of a substantial federal question. At oral argument, however, petitioner’s lawyer also explained that he was confused as to whether he could appeal both the facial attack on the statute and the challenge to the statute as applied, and had therefore chosen the more conservative route of seeking a petition for a writ of certiorari on both issues. See Tr. Oral Arg. 21-22.
Chief Judge Seitz filed a separate concurring opinion. He found the case “most difficult,” noting that “the literal statutory requirements for exercise of section 2254 federal habeas corpus jurisdiction can be said to be satisfied.” 648 F. 2d, at 155. But he nevertheless concurred in the result because habeas corpus has never been used to challenge state child-custody decisions, and “such a major departure from traditional uses of federal habeas corpus to challenge state-court judgments” should “await a congressional directive on the matter.” Id., at 156.
Judge Rosenn, joined by two other judges, dissented. He stressed that “[t]he total extinction of a familial relationship between children and their biological parents is the most drastic measure that a state can impose, short of criminal sanctions.” Id., at 163. Judge Gibbons also filed a dissenting opinion, arguing that there was federal subject-matter jurisdiction and that habeas corpus should be an available remedy because a decision terminating parental rights has ongoing effects. Id., at 177.
The federal courts have split on this issue. Only one court other than the Court of Appeals for the Third Circuit has addressed the question in a full opinion; in Sylvander v. New England Home far Little Wanderers, 584 F. 2d 1103 (1978), the Court of Appeals for the First Circuit held that habeas corpus could not be used to avoid the finality of prior state-court child-custody proceedings, with a rationale much like Judge Garth’s in the instant case. Other federal courts have assumed — without full analysis— that habeas jurisdiction lies. See Davis v. Page, 640 F. 2d 599, 602 (CA5 1981) (en banc); Rowell v. Oesterle, 626 F. 2d 437 (CA5 1980).
See 28 U. S. C. § 2241 (empowering federal judges to grant such writs; subsection (c) provides that “[t]he writ of habeas corpus shall not extend to a prisoner unless . . .”) (emphasis added); see also 28 U. S. C. § 2254(b) (“An application for a writ of habeas corpus in behalf of a person in custody pursuant to the judgment of a State court shall ... be granted unless [state remedies have not been exhausted or are not available, or there are] circumstances rendering such process ineffective to protect the rights of the prisoner*’) (emphasis added).
When habeas corpus is made available by a federal court to challenge custody by federal entities, federalism concerns are not implicated. The only relevant question then is what federal remedy may be available. The grant of habeas relief in such instances — e. g., Strait v. Laird, 406 U. S. 341 (1972) (inactive Army Reserve member allowed to bring habeas petition to challenge his military obligation); Brownell v. Tom We Shung, 352 U. S. 180, 182-184 (1956) (alien allowed to use habeas to challenge his exclusion from the United States) — is not precedent for the use of federal habeas to challenge judgments of state courts. As Judge Garth noted in his decision below: “[T]he writ assumes even more profound implications when its operation cuts across the federal and state judicial systems. In this latter context, the writ empowers a single federal judge to overrule determinations of federal issues which have been adjudicated by the highest court of a state.” 648 F. 2d, at 139.
Jurisdiction to challenge both state and federal judgments is conferred by §2241. But §2254, conferring general jurisdiction to consider collateral attacks on state judgments, has no relevance to federal habeas proceedings challenging federal custody of nonprisoners. Thus, federal decisions made pursuant to § 2241 constitute no authority for the claim of jurisdiction under § 2254 in this case.
In Hensley, the State would have placed the petitioner behind bars, but was prevented by a stay entered by the state trial court that subsequently was extended by two Justices of this Court. 411 U. S., at 351. Thus, although Hensley held the writ to be available in a case in which there was no actual custody in a state penal institution at the time the writ was filed, the extension was in the context of a person who had a strong claim to be treated as a prisoner for jurisdictional purposes.
See Hensley, 411 U. S., at 345 (“This case requires us to determine whether a person released on his own recognizance is ‘in custody’ within the meaning of the federal habeas corpus statute . . .”); Carafas v. LaVallee, 391 U. S., at 238 (similar); Jones v. Cunningham, 371 U. S., at 236 (similar).
We express no view as to the availability of federal habeas when a child is actually confined in a state institution rather than being at liberty in the custody of a foster parent pursuant to a court order.
At the hearing before the Pennsylvania trial court, petitioner’s lawyer actually stated “[t]his is not a custody proceeding . . . .” Tr. 67.
The Court has considered constitutional challenges to custody or parental-rights proceedings, but these cases have reached the Court on direct review of the final state-court decision, not on federal habeas. See, e. g., Santosky v. Kramer, 455 U. S. 745 (1982).
Justice Blackmun’s dissenting opinion states that the legislative history, though admittedly sparse, supports its interpretation of the scope of § 2254 because “[t]he codification of the writ into federal law indicates no congressional intent to contract its common-law scope.” See post, at 518. But the dissenting opinion cites no legislative history relevant to state-court custody decisions. Moreover, for at least 100 years after passage of the statute in 1867, the writ was not used in child-custody cases. This history strongly suggests that the extension of federal habeas corpus to state custody cases was never contemplated by Congress, nor understood by the Bar to have been an available remedy.
Petitioner maintains that the approval of habeas jurisdiction in this case may be limited. She suggests that it could be available only when the State takes the child away from its natural parents, but not when the State simply determines custody in a routine intrafamily dispute. It is not apparent that such distinctions are possible, either in legal theory or as a practical matter. The circumstances of custody vary widely, though in each disputed ease the child is in the custody of one person — over the objections of someone else — by order of a state court. We see no principled basis for distinguishing between the claim of a natural parent and the claim of grandparents or even the claim of an unrelated person who has been given legal custody that is challenged by a third party. Moreover, the arguments of res judicata and federalism apply with equal force in every collateral attack on a state custody decision in a federal court.
The dissent suggests that comity and federalism concerns cannot inform a court’s construction of a statute in determining a question of jurisdiction over certain kinds of cases. Post, at 522-523. But in Fair Assessment in Real Estate Assn. v. McNary, 454 U. S. 100 (1981), precisely those concerns lead this Court to conclude that 42 U. S. C. § 1983 does not confer jurisdiction on the federal courts to hear suits for tax refunds when state law provides an adequate remedy.
In his decision below, Judge Garth expressed similar views:
“While the ability to avoid res judicata is an extraordinary characteristic of habeas when the relitigation takes place within the same judicial system — that is, when a state court entertains the writ on behalf of a person in custody pursuant to the judgment of a court of that same state — the writ assumes even more profound implications when its operation cuts across the federal and state judicial systems. [T]he assumption of habeas jurisdiction by a federal court on behalf of a party complaining of a judgment rendered against him by a state court, represents an unparalleled assertion of federal authority over the state judicial system. Such an intrusion upon state judicial authority deeply implicates the principles of comity and may impair the smooth workings of our federal system.
“The awesome power of the writ to avoid res judicata, and its implications for our federalism, demand that its use be confined to its proper role: the preservation of individual liberty and the relief from unlawful custody.” 648 F. 2d, at 139.
There is also the danger that “if litigation expenses mount, social workers and charitable organizations . . . may well become less willing to seek placements for children over their parents’ objections, whether rational or irrational, even though in their honest judgment the child’s best interests demand it.” Sylvander v. New England Home for Little Wanderers, 584 F. 2d, at 1112.
In Hensley, this Court observed:
“The custody requirement of the habeas corpus statute is designed to preserve the writ of habeas corpus as a remedy for severe restraints on individual liberty. Since habeas corpus is an extraordinary remedy whose operation is to a large extent uninhibited by traditional rules of finality and federalism, its use has been limited to cases of special urgency, leaving more conventional remedies for cases in which the restraints on liberty are neither severe nor immediate.” 411 U. S., at 351.