opinion: Per Curiam.
  Federal courts may not issue writs of habeas corpus to state prisoners whose confinement does not violate federal law. Because the Court of Appeals granted the writ to respondent without finding such a violation, we vacate its judgment and remand.
  * H: *
  In 1997, respondent Joseph Corcoran shot and killed four men, including his brother and his sister’s fiance. An Indiana jury found him guilty of four counts of murder, found the statutory aggravating circumstance of multiple murders, and unanimously recommended capital punishment. The trial judge agreed and sentenced respondent to death.
  But on appeal, the Supreme Court of Indiana vacated the sentence out of concern that the trial judge might have violated Indiana law by relying partly on nonstatutory aggravating factors when imposing the death penalty. Corcoran v. State, 739 N. E. 2d 649, 657-658 (2000). When addressing respondent at sentencing, the trial court had remarked:
  “ ‘[T]he knowing and intentional murders of four innocent people is an extremely heinous and aggravated crime. ... I don’t think in the history of this county we’ve had a mass murderer such as yourself. It makes you, Mr. Corcoran, a very dangerous, evil mass murderer. And I am convinced in my heart of hearts, . . . if given the opportunity, you will murder again.’ ” Id., at 657 (quoting transcript).
  According to the Indiana Supreme Court, the trial judge’s reference to the innocence of respondent’s victims, the heinousness of his offense, and his future dangerousness was not necessarily improper; it is permissible to provide “an appropriate context for consideration of the alleged aggravating and mitigating circumstances.” Ibid. (internal quotation marks omitted). But because the trial court might have meant that it weighed these factors as aggravating circumstances, the Indiana Supreme Court remanded for resentencing. See ibid.
  On remand, the trial court issued a revised sentencing order. It wrote:
  “ ‘The trial Court, in balancing the proved aggravators and mitigators, emphasizes to the Supreme Court that it only relied upon those proven statutory aggravators. The trial Court’s remarks at the sentencing hearing, and the language in the original sentencing order explain why such high weight was given to the statutory aggra-vator of multiple murder, and further support the trial Court’s personal conclusion that the sentence is appropriate punishment for this offender and these crimes;’ ” Corcoran v. State, 774 N. E. 2d 495, 498 (Ind. 2002) (quoting order).
  On appeal, over respondent’s objection, the Supreme Court accepted this explanation and affirmed the sentence. Id., at 498-499, 502. It explained that it was “now satisfied that the trial court has relied on only aggravators listed in Indiana Code § 35-50-2-9(b)....There is no lack of clarity in [the trial court’s] statement and no plausible reason to believe it untrue.” Id., at 499.
  Respondent later applied to the United States District Court for the Northern District of Indiana for a writ of ha-beas corpus. His habeas petition asserted a number of grounds for relief, including a renewed claim that, notwithstanding its assurances to the contrary, the trial court improperly relied on nonstatutory aggravating factors when it resenteneed him. Respondent also asserted that this reliance violated the Eighth and Fourteenth Amendments. Record, Doc. 13, p. 11. In its response to the petition, the State specifically disputed that contention. Id., Doc. 33, at 16 (“[Respondent] fails to establish any constitutional deficiency in [the] Indiana Supreme Court’s review of the trial court’s treatment of Corcoran’s sentence on remand, let alone does it show that the state supreme court’s judgment is in any way inconsistent with applicable United States Supreme Court precedent”).
  The District Court, however, had no need to resolve this dispute because it granted habeas relief on a wholly different ground: that an offer by the prosecutor to take the death penalty off the table in exchange for a waiver of a jury trial had violated the Sixth Amendment. Corcoran v. Buss, 483 F. Supp. 2d 709, 725-726 (2007). It did not address the sentencing challenge because that was “rendered moot” by the grant of habeas relief. Id., at 734.
  The State appealed, and the Seventh Circuit reversed the District Court’s Sixth Amendment ruling. Corcoran v. Buss, 551 F. 3d 703, 712, 714 (2008). Then, evidently overlooking respondent’s remaining sentencing claims, the Seventh Circuit remanded the case to the District Court “with instructions to deny the writ.” Id., at 714. To correct this oversight, we granted certiorari and vacated the Seventh Circuit’s judgment. Corcoran v. Levenhagen, 558 U. S. 1 (2009) (per curiam). We explained that the Court of Appeals “should have permitted the District Court to consider Corcoran’s unresolved challenges to his death sentence on remand, or should have itself explained why such consideration was unnecessary.” Id., at 2.
  On remand — and without any opportunity for briefing by the parties — the Court of Appeals changed course and granted habeas relief. Corcoran v. Levenhagen, 593 F. 3d 547, 555 (2010). After determining that respondent’s sentencing challenge had been waived by his failure to include it in his original cross-appeal, the Seventh Circuit concluded that the claim satisfied plain-error review. Id., at 551. The panel explained that, “unlike the Indiana Supreme Court,” it was unsatisfied with the trial court’s representation that it relied only on aggravating factors authorized by Indiana law. Ibid. Because the trial court’s revised sentencing order said that it used the nonstatutory factors of heinousness, victims’ innocence, and future dangerousness to determine the weight given to the aggravator of multiple murders, the Seventh Circuit concluded that the Indiana Supreme Court had made an “ ‘unreasonable determination of the facts’ ” when it accepted the trial court’s representation that it did not rely on those factors as aggravating circumstances. Ibid. (quoting 28 U. S. C. § 2254(d)(2)). The panel therefore required the Indiana trial court to reconsider its sentencing determination in order to “prevent. non-compliance with Indiana law.” 593 F. 3d, at 552-553.
  But it is only noncompliance with federal law that renders a State's criminal judgment susceptible to collateral attack in the federal courts. The habeas statute unambiguously provides that a federal court may issue the writ to a state prisoner “only on the ground that he is in custody in violation of the Constitution or laws or treaties of the United States.” 28 U. S. C. § 2254(a). And we have repeatedly held that “ ‘federal habeas corpus relief does not lie for errors of state law.’” Estelle v. McGuire, 502 U. S. 62, 67 (1991) (quoting Lewis v. Jeffers, 497 U. S. 764, 780 (1990)). “[I]t is not the province of a federal habeas court to reexamine state-court determinations on state-law questions.” 502 U. S., at 67-68. But here, the panel's opinion contained no hint that it thought the violation of Indiana law it had unearthed also entailed the infringement of any federal right. Not only did the court frame respondent’s claim as whether “the Indiana trial court considered non-statutory aggravating circumstances ... in contravention of state law,” 593 F. 3d, at 551 (emphasis added), it also explicitly acknowledged that “[njothing in [its] opinion prevents Indiana from adopting a rule permitting the use of non-statutory aggrava-tors in the death sentence selection process. See Zant v. Stephens, 462 U. S. 862, 878 (1983) (permitting their use under federal law),” id., at 551-552 (citations omitted).
  Nor did it suffice for the Court of Appeals to find an unreasonable determination of the facts under 28 U. S. C. § 2254(d)(2). That provision allows habeas petitioners to avoid the bar to habeas relief imposed with respect to federal claims adjudicated on the merits in state court by showing that the state court’s decision was “based on an unreasonable determination of the facts in light of the evidence presented in the State court proceeding.” It does not repeal the command of § 2254(a) that habeas relief may be afforded to a state prisoner “only on the ground” that his custody violates federal law.
  In response to the Seventh Circuit’s opinion, the State filed a petition for rehearing and rehearing en banc. The State’s petition argued that the Seventh Circuit had erred by granting relief in the absence of a federal violation. It also contended, on the authority of our opinion in Wainwright v. Goode, 464 U. S. 78 (1983) (per curiam), that the Court of Appeals erred by second-guessing the Indiana Supreme Court’s factual determination that its own trial court complied with Indiana law.
  The Seventh Circuit denied rehearing, but amended its opinion to include this language:
  “This [remand for resentencing] will cure the state trial court’s ‘unreasonable determination of the facts.’ 28 U. S. C. § 2254(d)(1) [sic]. (It will also prevent noncompliance with Indiana law [Corcoran] contended that, under the circumstances of this case, noncompliance with state law also violates the federal Constitution and thus warrants him relief under 28 U. S. C. § 2254(d)(2). [The State] has not advanced any contrary argument based on Wainwright v. Goode, 464 U. S. 78 (1983), or any similar decision.)” App. to Pet. for Cert. 144a-145a.
  The amendment did not cure the defect. It is not enough to note that a habeas petitioner asserts the existence of a constitutional violation; unless the federal court agrees with that assertion, it may not grant relief. The Seventh Circuit’s opinion reflects no such agreement, nor does it even articulate what federal right was allegedly infringed. In fact, as to one possible federal claim, the court maintains that it would not violate federal law for Indiana to adopt a rule authorizing what the trial court did. 593 F. 3d, at 551-552.
  In lieu of finding or even describing a constitutional error, the amended opinion says only that the State had not “advanced any contrary argument based on Wainwright v. Goode ... or any similar decision.” App. to Pet. for Cert. 145a. It is not clear what this language was meant to convey. It cannot have meant that the State forfeited the position that respondent’s allegations do not state a constitutional violation, since (as we observed) the State explicitly disputed that point before the District Court — the last forum in which the subject had been raised, leading the Court of Appeals to conclude that respondent had waived the claim entirely. 593 F. 3d, at 551. And there is no suggestion that the State has ever conceded the existence of a federal right to be sentenced in accordance with Indiana law. Under those circumstances, it was improper for the Court of Appeals to issue the writ without first concluding that a violation of federal law had been established.
  The petition for a writ of certiorari and respondent’s motion for leave to proceed in forma pauperis are granted. The judgment of the Court of Appeals is vacated, and the case is remanded for further proceedings consistent with this opinion. We express no view about the merits of the ha-beas petition.
  It is so ordered.
choices: attorney general of the United States, or his office specified state board or department of education city, town, township, village, or borough government or governmental unit state commission, board, committee, or authority county government or county governmental unit, except school district court or judicial district state department or agency governmental employee or job applicant female governmental employee or job applicant minority governmental employee or job applicant minority female governmental employee or job applicant not listed among agencies in the first Administrative Action variable retired or former governmental employee U.S. House of Representatives interstate compact judge state legislature, house, or committee local governmental unit other than a county, city, town, township, village, or borough governmental official, or an official of an agency established under an interstate compact state or U.S. supreme court local school district or board of education U.S. Senate U.S. senator foreign nation or instrumentality state or local governmental taxpayer, or executor of the estate of state college or university United States State person accused, indicted, or suspected of crime advertising business or agency agent, fiduciary, trustee, or executor airplane manufacturer, or manufacturer of parts of airplanes airline distributor, importer, or exporter of alcoholic beverages alien, person subject to a denaturalization proceeding, or one whose citizenship is revoked American Medical Association National Railroad Passenger Corp. amusement establishment, or recreational facility arrested person, or pretrial detainee attorney, or person acting as such;includes bar applicant or law student, or law firm or bar association author, copyright holder bank, savings and loan, credit union, investment company bankrupt person or business, or business in reorganization establishment serving liquor by the glass, or package liquor store water transportation, stevedore bookstore, newsstand, printer, bindery, purveyor or distributor of books or magazines brewery, distillery broker, stock exchange, investment or securities firm construction industry bus or motorized passenger transportation vehicle business, corporation buyer, purchaser cable TV car dealer person convicted of crime tangible property, other than real estate, including contraband chemical company child, children, including adopted or illegitimate religious organization, institution, or person private club or facility coal company or coal mine operator computer business or manufacturer, hardware or software consumer, consumer organization creditor, including institution appearing as such; e.g., a finance company person allegedly criminally insane or mentally incompetent to stand trial defendant debtor real estate developer disabled person or disability benefit claimant distributor person subject to selective service, including conscientious objector drug manufacturer druggist, pharmacist, pharmacy employee, or job applicant, including beneficiaries of employer-employee trust agreement, employee health and welfare fund, or multi-employer pension plan electric equipment manufacturer electric or hydroelectric power utility, power cooperative, or gas and electric company eleemosynary institution or person environmental organization employer. If employer's relations with employees are governed by the nature of the employer's business (e.g., railroad, boat), rather than labor law generally, the more specific designation is used in place of Employer. farmer, farm worker, or farm organization father female employee or job applicant female movie, play, pictorial representation, theatrical production, actor, or exhibitor or distributor of fisherman or fishing company food, meat packing, or processing company, stockyard foreign (non-American) nongovernmental entity franchiser franchisee lesbian, gay, bisexual, transexual person or organization person who guarantees another's obligations handicapped individual, or organization of devoted to health organization or person, nursing home, medical clinic or laboratory, chiropractor heir, or beneficiary, or person so claiming to be hospital, medical center husband, or ex-husband involuntarily committed mental patient Indian, including Indian tribe or nation insurance company, or surety inventor, patent assigner, trademark owner or holder investor injured person or legal entity, nonphysically and non-employment related juvenile government contractor holder of a license or permit, or applicant therefor magazine male medical or Medicaid claimant medical supply or manufacturing co. racial or ethnic minority employee or job applicant minority female employee or job applicant manufacturer management, executive officer, or director, of business entity military personnel, or dependent of, including reservist mining company or miner, excluding coal, oil, or pipeline company mother auto manufacturer newspaper, newsletter, journal of opinion, news service radio and television network, except cable tv nonprofit organization or business nonresident nuclear power plant or facility owner, landlord, or claimant to ownership, fee interest, or possession of land as well as chattels shareholders to whom a tender offer is made tender offer oil company, or natural gas producer elderly person, or organization dedicated to the elderly out of state noncriminal defendant political action committee parent or parents parking lot or service patient of a health professional telephone, telecommunications, or telegraph company physician, MD or DO, dentist, or medical society public interest organization physically injured person, including wrongful death, who is not an employee pipe line company package, luggage, container political candidate, activist, committee, party, party member, organization, or elected official indigent, needy, welfare recipient indigent defendant private person prisoner, inmate of penal institution professional organization, business, or person probationer, or parolee protester, demonstrator, picketer or pamphleteer (non-employment related), or non-indigent loiterer public utility publisher, publishing company radio station racial or ethnic minority person or organization protesting racial or ethnic segregation or discrimination racial or ethnic minority student or applicant for admission to an educational institution realtor journalist, columnist, member of the news media resident restaurant, food vendor retarded person, or mental incompetent retired or former employee railroad private school, college, or university seller or vendor shipper, including importer and exporter shopping center, mall spouse, or former spouse stockholder, shareholder, or bondholder retail business or outlet student, or applicant for admission to an educational institution taxpayer or executor of taxpayer's estate, federal only tenant or lessee theater, studio forest products, lumber, or logging company person traveling or wishing to travel abroad, or overseas travel agent trucking company, or motor carrier television station union member unemployed person or unemployment compensation applicant or claimant union, labor organization, or official of veteran voter, prospective voter, elector, or a nonelective official seeking reapportionment or redistricting of legislative districts (POL) wholesale trade wife, or ex-wife witness, or person under subpoena network slave slave-owner bank of the united states timber company u.s. job applicants or employees Army and Air Force Exchange Service Atomic Energy Commission Secretary or administrative unit or personnel of the U.S. Air Force Department or Secretary of Agriculture Alien Property Custodian Secretary or administrative unit or personnel of the U.S. Army Board of Immigration Appeals Bureau of Indian Affairs Bonneville Power Administration Benefits Review Board Civil Aeronautics Board Bureau of the Census Central Intelligence Agency Commodity Futures Trading Commission Department or Secretary of Commerce Comptroller of Currency Consumer Product Safety Commission Civil Rights Commission Civil Service Commission, U.S. Customs Service or Commissioner of Customs Defense Base Closure and REalignment Commission Drug Enforcement Agency Department or Secretary of Defense (and Department or Secretary of War) Department or Secretary of Energy Department or Secretary of the Interior Department of Justice or Attorney General Department or Secretary of State Department or Secretary of Transportation Department or Secretary of Education U.S. Employees' Compensation Commission, or Commissioner Equal Employment Opportunity Commission Environmental Protection Agency or Administrator Federal Aviation Agency or Administration Federal Bureau of Investigation or Director Federal Bureau of Prisons Farm Credit Administration Federal Communications Commission (including a predecessor, Federal Radio Commission) Federal Credit Union Administration Food and Drug Administration Federal Deposit Insurance Corporation Federal Energy Administration Federal Election Commission Federal Energy Regulatory Commission Federal Housing Administration Federal Home Loan Bank Board Federal Labor Relations Authority Federal Maritime Board Federal Maritime Commission Farmers Home Administration Federal Parole Board Federal Power Commission Federal Railroad Administration Federal Reserve Board of Governors Federal Reserve System Federal Savings and Loan Insurance Corporation Federal Trade Commission Federal Works Administration, or Administrator General Accounting Office Comptroller General General Services Administration Department or Secretary of Health, Education and Welfare Department or Secretary of Health and Human Services Department or Secretary of Housing and Urban Development Interstate Commerce Commission Indian Claims Commission Immigration and Naturalization Service, or Director of, or District Director of, or Immigration and Naturalization Enforcement Internal Revenue Service, Collector, Commissioner, or District Director of Information Security Oversight Office Department or Secretary of Labor Loyalty Review Board Legal Services Corporation Merit Systems Protection Board Multistate Tax Commission National Aeronautics and Space Administration Secretary or administrative unit of the U.S. Navy National Credit Union Administration National Endowment for the Arts National Enforcement Commission National Highway Traffic Safety Administration National Labor Relations Board, or regional office or officer National Mediation Board National Railroad Adjustment Board Nuclear Regulatory Commission National Security Agency Office of Economic Opportunity Office of Management and Budget Office of Price Administration, or Price Administrator Office of Personnel Management Occupational Safety and Health Administration Occupational Safety and Health Review Commission Office of Workers' Compensation Programs Patent Office, or Commissioner of, or Board of Appeals of Pay Board (established under the Economic Stabilization Act of 1970) Pension Benefit Guaranty Corporation U.S. Public Health Service Postal Rate Commission Provider Reimbursement Review Board Renegotiation Board Railroad Adjustment Board Railroad Retirement Board Subversive Activities Control Board Small Business Administration Securities and Exchange Commission Social Security Administration or Commissioner Selective Service System Department or Secretary of the Treasury Tennessee Valley Authority United States Forest Service United States Parole Commission Postal Service and Post Office, or Postmaster General, or Postmaster United States Sentencing Commission Veterans' Administration War Production Board Wage Stabilization Board General Land Office of Commissioners Transportation Security Administration Surface Transportation Board U.S. Shipping Board Emergency Fleet Corp. Reconstruction Finance Corp. Department or Secretary of Homeland Security Unidentifiable International Entity