Per Curiam.
In 1958, respondent was convicted of robbery in Washington state court and sentenced to 20 years of imprisonment; this sentence expired by its terms in 1978. In 1976, while on parole from that sentence, he was convicted of two counts of assault and one count of aiding a prisoner to escape; in 1978, the State sentenced him to two life terms and one 10-year term on those convictions. These sentences were maximum terms under Washington’s then-indeterminate sentencing scheme, with the minimum term to be set by the Board of Prison Terms and Paroles. Under Washington law, the 1958 conviction will increase by several years the mandatory minimum term which respondent will have to serve on his 1978 sentences.
In 1976 respondent was also convicted of bank robbery and conspiracy in federal court and sentenced to 30 years of imprisonment. He is currently serving his federal sentence in a federal penitentiary in California, but the State of Washington has lodged a detainer against him with federal prison authorities. Respondent is scheduled to begin serving the sentences imposed upon him by the Washington courts in 1978 at the expiration of his federal term.
In 1985, while in federal prison, respondent filed a pro se petition for habeas corpus relief in the United States District Court for the Western District of Washington. Respondent’s petition listed the 1958 Washington conviction as the “conviction under attack,” alleging that it was invalid because respondent had not been given a competency hearing, even though there was reasonable doubt as to his competency to stand trial. Respondent also alleged that the 1958 conviction had been used illegally to enhance his 1978 state sentences, which he had not yet begun to serve. The District Court dismissed the petition for lack of subject-matter jurisdiction, holding that respondent was not “in custody” for the purposes of a habeas attack on the 1958 conviction because the sentence imposed for that conviction had already expired. The Court of Appeals for the Ninth Circuit reversed. 847 P. 2d 616 (1988). The Court of Appeals held that respondent was still “in custody” under the 1958 conviction, even though the sentence imposed for that conviction had expired, because it had been used to enhance the sentences imposed in 1978 for his 1976 state convictions, which he had yet to serve. Id., at 618-619. We granted certiorari to review this interpretation of the “in custody” requirement. 488 U. S. 941 (1988). We conclude that respondent is not presently “in custody” under the 1958 sentence, but that he is “in custody” under the 1978 state sentences which he has not yet begun to serve.
The federal habeas statute gives the United States district courts jurisdiction to entertain petitions for habeas relief only from persons who are “in custody in violation of the Constitution or laws or treaties of the United States.” 28 U. S. C. § 2241(c)(3) (emphasis added); see also 28 U. S. C. § 2254(a). We have interpreted the statutory language as requiring that the habeas petitioner be “in custody” under the conviction or sentence under attack at the time his petition is filed. See Carafas v. LaVallee, 391 U. S. 234, 238 (1968). In this case, the Court of Appeals held that a habeas petitioner may be “in custody” under a conviction whose sentence has fully expired at the time his petition is filed, simply because that conviction has been used to enhance the length of a current or future sentence imposed for a subsequent conviction. We think that this interpretation stretches the language “in custody” too far.
Our interpretation of the “in custody” language has not required that a prisoner be physically confined in order to challenge his sentence on habeas corpus. In Jones v. Cunningham, 371 U. S. 236 (1963), for example, we held that a prisoner who had been placed on parole was still “in custody” under his unexpired sentence. We reasoned that the petitioner’s release from physical confinement under the sentence in question was not unconditional; instead, it was explicitly conditioned on his reporting regularly to his parole officer, remaining in a particular community, residence, and job, and refraining from certain activities. Id., at 242; see also Hensley v. Municipal Court, San Jose-Milpitas Judicial Dist., Santa Clara County, 411 U. S. 345 (1973); Braden v. 30th Judicial Circuit Court of Ky., 410 U. S. 484 (1973).
We have never held, however, that a habeas petitioner may be “in custody” under a conviction when the sentence imposed for that conviction has fully expired at the time his petition is filed. Indeed, our decision in Carafas v. LaVallee, supra, strongly implies the contrary. In Carafas, the petitioner filed his habeas application while he was actually incarcerated under the sentence he sought to attack, but his sentence expired and he was unconditionally discharged from custody while his appeal from the denial of habeas relief below was pending before this Court. The State argued that the unconditional discharge rendered the case moot. We rejected this argument, holding that the “collateral consequences” of the petitioner’s conviction — his inability to vote, engage in certain businesses, hold public office, or serve as a juror — prevented the case from being moot. Id., at 237-238. We went on to say, however, that the unconditional release raised a “substantial issue” as to the statutory “in custody” requirement. Id., at 238. While we ultimately found that requirement satisfied as well, we rested that holding not on the collateral consequences of the conviction, but on the fact that the petitioner had been in physical custody under the challenged conviction at the time the petition was filed. Ibid. The negative implication of this holding is, of course, that once the sentence imposed for a conviction has completely expired, the collateral consequences of that conviction are not themselves sufficient to render an individual “in custody” for the purposes of a habeas attack upon it.
The question presented by this case is whether a habeas petitioner remains “in custody” under a conviction after the sentence imposed for it has fully expired, merely because of the possibility that the prior conviction will be used to enhance the sentences imposed for any subsequent crimes of which he is convicted. We hold that he does not. While we have very liberally construed the “in custody” requirement for purposes of federal habeas, we have never extended it to the situation where a habeas petitioner suffers no present restraint from a conviction. Since almost all States have habitual offender statutes, and many States provide as Washington does for specific enhancement of subsequent sentences on the basis of prior convictions, a contrary ruling would mean that a petitioner whose sentence has completely expired could nonetheless challenge the conviction for which it was imposed at any time on federal habeas. This would read the “in custody” requirement out of the statute and be contrary to the clear implication of the opinion in Carafas v. LaVallee, supra.
In this case, of course, the possibility of a sentence upon a subsequent conviction being enhanced because of the prior conviction actually materialized, but we do not think that requires any different conclusion. When the second sentence is imposed, it is pursuant to the second conviction that the petitioner is incarcerated and is therefore “in custody.”
We do think, however, that respondent may challenge the sentences imposed upon him by the State of Washington in 1978, even though he is not presently serving them. In Mc-Nally v. Hill, 293 U. S. 131 (1934), we held that the “in custody” requirement meant present physical confinement under the conviction or sentence under attack. Were this rule still the law, respondent would not be “in custody” even under the 1978 sentences, because he has not yet begun to serve them. But in Peyton v. Rowe, 391 U. S. 54 (1968), we overruled McNally and held that a petitioner who was serving two con-' secutive sentences imposed by the Commonwealth of Virginia could challenge the second sentence which he had not yet begun to serve.
While in this case respondent is serving a federal sentence, rather than another sentence imposed by the State of Washington, we do not think this factual difference from Peyton v. Rowe requires a different result. The State of Washington has placed a detainer with the federal authorities to ensure that at the conclusion of respondent’s federal sentence, he will be returned to the state authorities to begin serving his 1978 state sentences. In Braden v. 30th Judicial Circuit Court of Ky., supra, we held that a prisoner serving a sentence in Alabama, who was subject to a detainer filed with his Alabama jailers by Kentucky officials, was “in custody” for the purpose of a habeas attack on the outstanding Kentucky charge upon which the detainer rested. We think that Braden and Peyton together require the conclusion that respondent in this case was “in custody” under his 1978 state sentences at the time he filed. Since we think respondent’s habeas petition, construed with the deference to which pro se litigants are entitled, Haines v. Kerner, 404 U. S. 519 (1972), can be read as asserting a challenge to the 1978 sentences, as enhanced by the allegedly invalid prior conviction, see United States v. Tucker, 404 U. S. 443 (1972), we affirm the Court of Appeals’ finding that respondent has satisfied the “in custody” requirement for federal habeas jurisdiction.
Our holding is limited to the narrow issue of “custody” for subject-matter jurisdiction of the habeas court. We express no view on the extent to which the 1958 conviction itself may be subject to challenge in the attack upon the 1978 sentences which it was used to enhance. See 28 U. S. C. §2254 Rule 9(a).
The judgment of the Court of Appeals is
Affirmed.
Respondent also alleged that the 1958 conviction had been used to enhance the federal sentence which he was serving at the time of the filing. The courts below did not address that contention, however, and respondent has not pressed it before this Court. Accordingly, we do not consider it here.
What follows is an opinion from the Supreme Court of the United States. Your task is to determine the bases on which the Supreme Court rested its decision with regard to the legal provision that the Court considered in the case. Consider "judicial review (national level)" if the majority determined the constitutionality of some action taken by some unit or official of the federal government, including an interstate compact. Consider "judicial review (state level)" if the majority determined the constitutionality of some action taken by some unit or official of a state or local government. Consider "statutory construction" for cases where the majority interpret a federal statute, treaty, or court rule; if the Court interprets a federal statute governing the powers or jurisdiction of a federal court; if the Court construes a state law as incompatible with a federal law; or if an administrative official interprets a federal statute. Do not consider "statutory construction" where an administrative agency or official acts "pursuant to" a statute, unless the Court interprets the statute to determine if administrative action is proper. Consider "interpretation of administrative regulation or rule, or executive order" if the majority treats federal administrative action in arriving at its decision.Consider "diversity jurisdiction" if the majority said in approximately so many words that under its diversity jurisdiction it is interpreting state law. Consider "federal common law" if the majority indicate that it used a judge-made "doctrine" or "rule; if the Court without more merely specifies the disposition the Court has made of the case and cites one or more of its own previously decided cases unless the citation is qualified by the word "see."; if the case concerns admiralty or maritime law, or some other aspect of the law of nations other than a treaty; if the case concerns the retroactive application of a constitutional provision or a previous decision of the Court; if the case concerns an exclusionary rule, the harmless error rule (though not the statute), the abstention doctrine, comity, res judicata, or collateral estoppel; or if the case concerns a "rule" or "doctrine" that is not specified as related to or connected with a constitutional or statutory provision. Consider "Supreme Court supervision of lower federal or state courts or original jurisdiction" otherwise (i.e., the residual code); for issues pertaining to non-statutorily based Judicial Power topics; for cases arising under the Court's original jurisdiction; in cases in which the Court denied or dismissed the petition for review or where the decision of a lower court is affirmed by a tie vote; or in workers' compensation litigation involving statutory interpretation and, in addition, a discussion of jury determination and/or the sufficiency of the evidence.