Federal prisoner Anselmo Bernal Hernandez appeals the order of the District Court for the Central District of California (“Central District” or “sentencing court”) denying his habeas corpus petition. Because the Central District failed to determine whether it had jurisdiction, we vacate its order dismissing the petition. We also remand with instructions for the Central District to determine whether the petition is styled properly as one brought under 28 U.S.C. § 2241, and, if so, to transfer the action back to the District Court for the Eastern District of California (“Eastern District” or “custodial court”). See Washington Local Lodge No. 104 v. International Bhd. of Boilermakers,
I.
In March 1993, a jury in the Central District convicted Hernandez and two co-defendants, Santos Alvarez Felix and Adolpho Leon Gomez, of conspiracy to possess with intent to distribute cocaine and possession with intent to distribute cocaine, in violation of 21 U.S.C. §§ 846 & 841. The sentencing court sentenced Hernandez to 135 months in prison after determining that he was responsible for conspiracy to possess five kilograms of cocaine. The quantity of cocaine actually delivered was approximately 4.6 kilograms. See United States v. Felix,
After an unsuccessful direct appeal, Hernandez filed a motion to vacate, set aside, and/or correct his sentence pursuant to 28 U.S.C. § 2255. The only ground for relief alleged in that motion, filed June 7, 1995, was that Hernandez’s conviction and sentence were barred by the Double Jeopardy Clause of the Fifth Amendment. The Central District denied the motion, and this court affirmed. See United States v. Hernandez, No. 95-56704,
While Hernandez’s § 2255 motion was pending, three events occurred that form the basis of this appeal. First, Application Note 12 of United States Sentencing Guidelines § 2D1.1 was amended to clarify the quantity of drugs that district courts should consider when sentencing for a completed transaction. See Felix,
Second, this court reversed Hernandez’s co-defendants’ sentences and remanded for the district court to resentence Felix and Gomez based on the amount of cocaine actually delivered, in accord with the new amendment. See Felix,
Third, Congress passed the Anti-Terrorism and Effective Death Penalty Act of 1996 (“AEDPA”), which precludes a prisoner from filing a second or successive § 2255 motion, except in very narrow circumstances and only after receiving authorization to file from the court of appeals. See 28 U.S.C. § 2244(b).
On April 6, 1998, Hernandez filed the petition presently at issue, pursuant to 28 U.S.C. § 2241, in the Eastern District, the court with jurisdiction over the prison in which he is incarcerated.
II.
A.
Generally, motions to contest the legality of a sentence must be filed under § 2255 in the sentencing court, while petitions that challenge the manner, location, or conditions of a sentence’s execution must be brought pursuant to § 2241 in the custodial court. See Doganiere v. United States,
Under the savings clause of § 2255, however, a federal prisoner may file a habeas corpus petition pursuant to § 2241
An inquiry into whether a § 2241 petition is proper under these circumstances is critical to the determination of district court jurisdiction, because the proper district for filing a habeas petition depends upon whether the petition is filed pursuant to § 2241 or § 2255. In particular, a habeas petition filed pursuant to § 2241 must be heard in the custodial court (here, the Eastern District), even if the § 2241 petition contests the legality of a sentence by falling under the savings clause. See Brittingham v. United States,
Thus, in order to determine whether jurisdiction is proper, a court must first determine whether a habeas petition is filed pursuant to § 2241 or § 2255 before proceeding to any other issue. If Hernandez’s petition falls under the savings clause so as to be a petition pursuant to § 2241, then only the Eastern District has jurisdiction. If the savings clause does not come into play, however, then Hernandez’s petition must be construed as a petition under § 2255, such that jurisdiction lies only in the Central District.
B.
Neither the Central District nor the Eastern District considered whether Hernandez properly invoked the savings clause, thereby ignoring the decisive jurisdictional question. Federal courts are always “under an independent obligation to examine their own jurisdiction,” FW/PBS, Inc. v. City of Dallas,
In its transfer order, the Eastern District expressly declined to construe Hernandez’s motion as a § 2241 or § 2255 petition.
Moreover, by refusing to construe Hernandez’s petition as either a § 2255 or § 2241 claim, the Eastern District also
C.
As the sentencing court, the Central District also erred by treating the petition as one .under § 2241 and dismissing it on the merits. By simply ruling that a § 2241 petition is improper to challenge the legality of a sentence,
As the government acknowledges, the Central District did not have jurisdiction to entertain the pleading as a § 2241 petition. The government apparently requests that we construe the pleading as a § 2255 motion and affirm the Central District’s dismissal of the action. We decline to do so.
Under the strict provisions of the recently-enacted AEDPA, prisoners may only file second or successive petitions in extremely narrow circumstances. It is therefore likely that federal courts will see more attempts to bring § 2241 petitions pursuant to the savings clause, because, in many instances, federal prisoners will have no other avenue through which collaterally to attack their sentences. Thus, in such circumstances, it is imperative, as a matter of the initial determination of jurisdiction, that district courts first determine whether the savings clause permits the filing of a § 2241 habeas corpus petition.
III.
We therefore vacate the dismissal and remand so that the Central District can determine whether it has jurisdiction over the petition. See Washington Local Lodge,
The Central District’s oi'der of dismissal is REVERSED, and the case is REMANDED for further proceedings.
Notes
. Section 2244(b)(2) requires dismissal ol a successive petition unless: (1) the claim relies on a new rule of constitutional law that is made retroactive to cases on collateral review by the Supreme Court; or (2) the factual predicate for the claim could not have been discovered previously through the exercise of due diligence and the facts would be sufficient to establish that no reasonable factfinder would have found the applicant guilty of the underlying offense. See Greenawalt v. Stewart,
. A federal prisoner may file a habeas corpus petition pursuant to § 2241 where his remedy under § 2255 is "inadequate or ineffective to test the legality of his detention.” 28 U.S.C. § 2255. We refer to this provision of § 2255 as the "savings clause.”
. After the dismissal of his petition, Hernandez filed a second request for leave to file a second or successive § 2255 motion, which we also denied. Hernandez v. United States, No. 98-71164 (9th Cir. Feb. 11, 1999) (Order).
.Congress enacted § 2255 primarily to ease the administrative burden imposed by the jurisdictional requirement that all habeas corpus petitions be heard in the district of incarceration. See United States v. Hayman,
. The Eastern District specifically stated that, "[t]his Court has not ruled on whether the petition should be construed as a 28 U.S.C. § 2255 or 28 U.S.C. § 2241 petition for writ of habeas corpus....”
. The Eastern District also erred by transferring the action pursuant to 28 U.S.C. § 1406(a), rather than 28 U.S.C. § 1631. Section 1406(a) only allows transfer where the first court has subject matter jurisdiction over the action. See Grand Blanc Bd. of
. The Central District was also incorrect in stating that § 2241 petitions may not address the legality of sentences; indeed, the whole point of the savings clause is to allow petitions to be filed under § 2241 when § 2255 is otherwise "inadequate or ineffective.” 28 U.S.C. § 2255. We express no opinion, however, on the extent to which the savings clause allows petitioners to contest the legality of sentences under § 2241.
