Petitioners are aliens detained at Guantanamo after being captured in Afghanistan or elsewhere abroad and designated enemy combatants by CSRTs. Denying membership in the al Qaeda terrorist network that carried out the September 11 attacks and the Taliban regime that supported al Qaeda, each petitioner sought a writ of habeas corpus in the District Court, which ordered the cases dismissed for lack of jurisdiction because Guantanamo is outside sovereign U. S. territory. The D. C. Circuit affirmed, but this Court reversed, holding that 28 U. S. C. §2241 extended statutory habeas jurisdiction to Guantanamo. See Rasul v. Bush, 542 U. S. 466 . Petitioners’ cases were then consolidated into two proceedings. In the first, the district judge granted the Government’s motion to dismiss, holding that the detainees had no rights that could be vindicated in a habeas action. In the second, the judge held that the detainees had due process rights.

While appeals were pending, Congress passed the Detainee Treatment Act of 2005 (DTA), §1005(e) of which amended 28 U. S. C. §2241 to provide that “no court, justice, or judge shall have jurisdiction to … consider … an application for … habeas corpus filed by or on behalf of an alien detained … at Guantanamo,” and gave the D. C. Court of Appeals “exclusive” jurisdiction to review CSRT decisions. In Hamdan v. Rumsfeld, 548 U. S. 557 , the Court held this provision inapplicable to cases (like petitioners’) pending when the DTA was enacted. Congress responded with the Military Commissions Act of 2006 (MCA), §7(a) of which amended §2241(e)(1) to deny jurisdiction with respect to habeas actions by detained aliens determined to be enemy combatants, while §2241(e)(2) denies jurisdiction as to “any other action against the United States … relating to any aspect of the detention, transfer, treatment, trial, or conditions of confinement” of a detained alien determined to be an enemy combatant. MCA §7(b) provides that the 2241(e) amendments “shall take effect on the date of the enactment of this Act, and shall apply to all cases, without exception, pending on or after [that] date … which relate to any aspect of the detention, transfer, treatment, trial, or conditions of detention of an alien detained … since September 11, 2001.”