This appeal from the district court’s denial of Jose Manuel Prieto-Romero’s habe-as corpus petition concerns whether the government may continue to detain a legal permanent resident of the United States for over three years while he seeks administrative and judicial review of his removal order. We hold that this continued civil detention, although lengthy, is authorized by statute, and so we affirm the district court.
The facts of this case are straightforward and not disputed by either party. Prieto-Romero, a native and citizen of Mexico, has been a legal permanent resident of the United States since 1981. He was served with a notice to appear and detained by the Department of Homeland Security in February 2005. An immigration judge (“IJ”) found that Prieto-Rome-ro was a removable alien because he had been convicted of an aggravated felony in 1989. See 8 U.S.C. § 1227(a)(2)(A)(iii) (providing for removal of an alien convicted of an aggravated felony, as defined by § 1101(a)(43)(A)). 1 Prieto-Romero appealed the IJ’s ruling to the Board of Immigration Appeals (“BIA”), which affirmed the removal order in September 2005. He then filed a timely petition for review in the Ninth Circuit Court of Appeals. We entered a stay of removal pending consideration of his petition for review, which remains unresolved as of the filing of this opinion. See § 1252(b).
From February 2005 until the present, Prieto-Romero has remained in the continuous custody of the federal government. Concurrent with the government’s issuance of the notice to appear, the Attorney General determined that Prieto-Romero should be placed in detention. Pursuant to Department of Homeland Security (“DHS”) regulations, Prieto-Romero requested and received a bond redetermination hearing in May 2005 before an IJ, who declined to grant bond. In July 2005, after Prieto-Romero successfully appealed the IJ’s ruling to the BIA, the IJ again denied bond, finding that Prieto-Romero “constitutes a flight risk.” Prieto-Romero appealed once more to the BIA, but the BIA affirmed his removal order before it had a chance to reach the merits of his *1057 bond appeal. See 8 C.F.R. § 1236.1(d)(3). Between February 2006 and May 2006, DHS officials conducted a file custody review and concluded that Prieto-Romero should remain in detention “pending the result of [his petition for review] before the Ninth Circuit Court of Appeals.”
Prieto-Romero filed the instant petition for habeas corpus under 28 U.S.C. § 2241 in June 2006. At that time, his administrative proceedings before the IJ and BIA had been complete for approximately one year. In his petition for habeas corpus, Prieto-Romero argued that his prolonged detention violates both his substantive and procedural due process rights and is not authorized by any statute. In February 2007, the district court ordered DHS to hold an additional bond hearing for Prieto-Romero where he would bear the burden of proof; at the hearing, the IJ was to make an “individualized determination as to whether petitioner is a flight risk or a danger to the community,” “consider all the factors relevant to discretionary detention under [§ 1226(a)]” and, in so doing, “consider all the relevant factors provided in 8 C.F.R. § 241.4(f).” 2 In this third bond hearing, the IJ set bond at $15,000, an amount Prieto-Romero has been unable to pay. The district court thereafter denied Prieto-Romero’s petition for habeas corpus and he has now appealed that order. We have jurisdiction under 28 U.S.C. §§ 1291 and 2253(a).
In his petition, Prieto-Romero principally argues that the Attorney General does not currently have the authority to detain him because his detention has become prolonged and indefinite and is therefore not authorized by any statute.
See. Zadvydas v. Davis,
I.
Prieto-Romero and the government dispute whether the Attorney General’s authority to detain Prieto-Romero derives from § 1226(a), under which the Attorney General has the discretionary authority to detain an alien “pending a decision on whether the alien is to be removed from the United States,” or § 1231(a)(2) and (a)(6), under which the Attorney General has the authority to detain aliens “during” and “beyond” their “removal period.” Where an alien falls within this statutory scheme can affect whether his detention is mandatory or discretionary, as well as the kind of review process available to him if he wishes to contest the necessity of his detention. We hold that the Attorney General’s statutory *1058 authority to detain Prieto-Romero, whose administrative review is complete but whose removal is stayed pending the court of appeals’ resolution- of his petition for review, must be grounded in § 1226(a).
A.
The parties agree that § 1226(a) provided the statutory authority for the Attorney General’s initial detention of Prieto-Romero. 3 The Attorney General may issue a warrant of arrest concurrently with the notice to appear. See § 1226(a); see also 8 C.F.R. § 236.1(a). After an alien is detained, the DHS district director makes an initial custody determination and may allow the alien’s release on bond. See 8 C.F.R. § 236.1(d). If the alien objects to the director’s bond determination, he may request a bond redetermination hearing before an IJ at any time before the issuance of an administratively final order of removal. See id.; see also 8 C.F.R. § 1003.19(c). The alien may appeal the IJ’s bond decision to the BIA, see 8 C.F.R. § 236.1(d)(3), but discretionary decisions granting or denying bond are not subject to judicial review, see § 1226(e). Before Prieto-Romero filed his habeas corpus petition, he had received two bond hearings before an IJ under this regime. The BIA vacated the IJ’s first denial of bond because the IJ erroneously placed sole reliance on a presumption that aggravated felons are unsuitable for bond. At the second hearing, the IJ again denied Prie-to-Romero release on bond, finding him a flight risk. Prieto-Romero concedes that he was subject to detention under § 1226(a) during this process while the IJ and BIA were considering the merits of his removal order.
B.
Prieto-Romero contests the legality of his present detention, however, now that the BIA has affirmed his removal order and his petition for review is pending before the court of appeals pursuant to § 1252(a)(1). We must therefore decide what statutory authority governs an alien’s detention at this stage of his legal challenge to his removal. As Prieto-Romero’s case demonstrates, an alien whose removal order is administratively final is not necessarily immediately deported. When an alien files a petition for review of an administratively final order of removal, we have the authority to enter a judicial stay of removal. See § 1252(b)(3)(B). Approximately two of Prieto-Romero’s three years in federal custody have passed while he has been awaiting a decision of our court on his petition for review.
The statutory scheme governing the detention of such aliens is not a model of clarity. The government argues that aliens such as Prieto-Romero are detained under the Attorney General’s grant of authority in § 1231(a). Prieto-Romero responds that aliens whose judicial review is *1059 ongoing have not yet entered their “removal period,” and hence cannot be detained under § 1231(a), which provides for detention only “during” and “beyond” the “removal period.” The distinction has real consequences for the alien, because detention under § 1231(a)(2), for example, is mandatory but limited to a set period of time, whereas detention under § 1226(a) is discretionary and the necessity of detention can be reviewed by an IJ and the BIA. 4 We agree with Prieto-Romero and hold that § 1231(a) does not provide authority to detain an alien whose removal order is administratively final, but whose removal has been stayed by a court of appeals pending its disposition of his petition for review. Such aliens may be detained, however, pursuant to § 1226(a), which allows the Attorney General to detain any alien “pending a decision on whether the alien is to be removed from the United States.”
Our conclusion follows from the plain language of the statute. Section 1231(a) authorizes detention in only two circumstances. “During the removal period,” the Attorney General “shall” detain the alien. See § 1231(a)(2) (emphasis added). “[B]e-yond the removal period,” the Attorney General “may” detain an alien who falls within one of three categories specified by the statute. See § 1231(a)(6) (emphasis added). The “removal period” itself ordinarily lasts 90 days, but does not begin until the latest of the following:
(i) The date the order of removal becomes administratively final.
(ii) If the removal order is judicially reviewed and if a court orders a stay of the removal of the alien, the date of the court’s final order.
(in) If the alien is detained or confined (except under an immigration process), the date the alien is released from detention or confinement.
§ 1231(a)(1)(B) (emphasis added). The statute makes clear that when a court of appeals issues a stay of removal pending its decision on an alien’s petition for review of his removal order, the removal period begins only after the court denies the petition and withdraws the stay of removal.
5
*1060
See
§ 1231(a)(l)(B)(ii);
cf. Andrade v. Gonzales,
The government attempts to elide the obvious implication of § 1231 (a)’s silence on detention authority before the removal period has begun — that no such authority exists — by pointing to § 1252(b)(8), which provides:
This subsection [establishing a petition for review as the exclusive means for judicial review of an order of removal] ... does not prevent the Attorney General, after a final order of removal has been issued, from detaining the alien under section 1231(a) of this title....
(Emphasis added.) We reject the government’s assertion that the statutory cross-reference to § 1231(a) implicitly authorizes the detention of any alien whose removal order is administratively final, even when the alien is not subject to the Attorney General’s detention authority “[d]uring” and “beyond” the removal period. Cf § 1231(a)(2), (a)(6). Section 1252(b)(8) merely clarifies that a pending petition for review does not, by itself, detract from the detention authority otherwise conferred by § 1231(a)(2) and (a)(6). For instance, when an alien files a petition for review of his removal order and we decline to grant a stay of removal, see § 1252(b)(3)(B), the removal period commences immediately, see § 1231(a)(l)(B)(ii), “[d]uring” which time the alien may be detained under § 1231(a)(2). When the court of appeals has issued a stay, however, the alien may not be detained under any subsection of § 1231(a) unless and until the court finally denies the alien’s petition for review. See § 1231(a)(l)(B)(ii). 6
The government also urges that § 1231(a)(1)(C), which “extend[s]” the “removal period” beyond its presumptive 90-day limit if “the alien fails or refuses to make timely application in good faith for travel or other documents necessary to the alien’s departure or conspires or acts to prevent the alien’s removal,” can be construed to authorize Prieto-Romero’s detention. We disagree. Rather than functioning as an independent source of detention authority, § 1231(a)(1)(C) merely authorizes the government to
continue
detaining an alien “[d]uring the removal period.”
See
§ 1231(a)(2). Consequently, § 1231(a)(1)(C) cannot be invoked to justify the detention of an alien whose removal period has not yet begun. Moreover, we are highly skeptical about the government’s suggestion that an alien’s attempt to seek judicial relief from deportation
*1061
constitutes “conspiring] or act[ing] to prevent [his] removal.”
See
§ 1231(a)(1)(C). We have previously held that an alien engages in such behavior when he willfully refuses to cooperate with the government in processing his deportation papers.
See Lema v. INS,
The government’s remaining arguments are unpersuasive. It urges us to follow the Eleventh Circuit’s statement in
De La Teja v. United States,
We also reject the suggestion that we should accord
Chevron
deference to the BIA’s construction of § 1231.
See Chevron, U.S.A., Inc. v. NRDC,
Although § 1231(a) does not authorize the Attorney General to detain aliens such as Prieto-Romero, the Attorney General still retains discretionary detention authority under § 1226(a), which permits detention “pending a decision on whether the alien is to be removed from the United States.” It is reasonable to consider the judicial review of a removal order as part of the process of making an ultimate “decision” as to whether an alien “is to be removed.” Because Prieto-Romero filed a petition for review and our court entered a stay, his detention is governed by § 1226(a); only if we enter a final order denying his petition for review will the statutory source of the Attorney General’s detention authority shift from § 1226(a) to § 1231(a).
II.
Having determined that the government’s authority to detain Prieto-Romero must derive from § 1226(a), we now turn to the question of whether Prieto-Romero is entitled to habeas corpus relief.
A.
Section 1226(a) on its face authorizes the detention of aliens during the removal order review process. Prieto-Romero contends, however, that Congress did not intend to authorize prolonged and indefinite detention under that statute, and therefore that the principle of constitutional avoidance requires us to read an implicit limitation into the Attorney General’s detention authority. Prieto-Rome-ro’s more than three-year detention certainly qualifies as prolonged by any measure. We conclude, however, that it is not an indefinite one. We hold that he faces a significant likelihood of removal in the reasonably foreseeable future because the government can repatriate him to Mexico if his pending bid for judicial relief from his administratively final removal order proves unsuccessful. Therefore, his continued detention remains statutorily authorized by § 1226(a).
In
Zadvydas v. Davis,
Prieto-Romero argues that
Zadvydas
squarely controls his case, because Congress could not have authorized his three-year detention under any immigration statute. We partly agree: that an alien is being held under § 1226(a), and not § 1231(a)(6), does not render
Zadvydas
inapplicable.
Zadvydas
held that § 1231(a)(6) did not contain any clear “indication of congressional intent to grant the Attorney General the power” to indefinitely detain.
Id.
at 697,
We nonetheless reject Prieto-Romero’s bid for habeas relief because, as the government forcefully argues, Prieto-Rome-ro’s detention continues to be authorized by § 1226(a), even as interpreted to avoid the constitutional problem of indefinite detention recognized by
Zadvydas.
Although his removal has certainly been delayed by his pursuit of judicial review of his administratively final removal order, he is not stuck in a “removable-but-unremova-ble limbo,” as the petitioners in
Zadvydas
were.
See Jama v. Immigration and Customs Enforcement,
It is true that Prieto-Romero’s detention lacks a certain end date, but this uncertainty alone does not render his detention
indefinite
in the sense the Supreme Court found constitutionally problematic in
Zadvydas.
The Court emphasized that the “basic purpose” of the immigration detention is “assuring the alien’s presence at removal” and concluded that this purpose was not served by the continued detention of aliens whose removal was not “reasonably foreseeable.”
Id.
at 699,
We similarly relied on the likely impossibility of removal in
Nadarajah v. Gonzales,
Prieto-Romero urges us to read
Nadar-ajah
to mean that an alien’s removal is no longer “reasonably foreseeable,” and hence his detention is unauthorized by statute, whenever there is some degree of uncertainty as to when his detention will conclude.
See id.
at 1081 (noting that an alien’s detention did not cease to be indefinite merely because his case had been referred to the Attorney General for review “at some point”). Because no one can say exactly when Prieto-Romero’s petition for review will be resolved, he argues he is in the same situation as the alien in
Nadarajah.
We are not persuaded that
Nadarajah
supports such a broad contention. Prieto-Romero has been found removable by both the IJ and the BIA, but has sought judicial relief from that removal order, thereby delaying his deportation. Judicial review, unlike the administrative process the government invoked in
Nadarajah,
is subject to strict procedural rules.
9
That independent, ex
*1065
ternal constraint is “satisfactory] assurance],” cf
. Nadarajah,
Prieto-Romero foreseeably remains
capable
of being removed — even if it has not yet finally been determined that he
should be
removed — and so the government retains an interest in “assuring [his] presence at removal.”
See Zadvydas,
B.
Prieto-Romero raises a second challenge to the legality of his detention: whether the government may detain him for a prolonged period, all the while placing upon him the burden of proving that he is not a flight risk or danger to the community. As the Supreme Court recognized, there is little question that the civil detention of aliens during removal proceedings can serve a legitimate government purpose, which is “preventing de-portable ... aliens from fleeing prior to or during their removal proceedings, thus increasing the chance that, if ordered removed, the aliens will be successfully removed.”
Demore,
Prieto-Romero received two bond hearings while his case was pending before the IJ and BIA and a third at the direction of the district court. At the third hearing, the IJ found him eligible for bond. Prie-to-Romero thus had an opportunity to con
*1066
test the necessity of his detention before a neutral decisionmaker and an opportunity to appeal that determination to the BIA.
See
8 C.F.R. § 236.1(d);
Matter of Guerra,
24 I. & N. Dec. 37 (BIA 2006). Prieto-Romero argues that the three bond hearings he has received were deficient in only one respect, which was that DHS regulations place the burden of proof on the alien to show that he merits release on bond because he is neither a flight risk nor a danger to the community.
See Matter of Guerra,
24 I. & N. Dec. at 40. He argues that
Tijani v. Willis,
In Tijani, we held that an alien who had been subjected to mandatory detention under § 1226(c) could not continue to be detained during his judicial review process unless he was afforded an individualized hearing before an immigration judge. Id. at 1242. Unlike the alien in Tijani, Prie-to-Romero was at no point subject to mandatory detention under § 1226(c). Id. The alien in Tijani, unlike Prieto-Romero, had never received any individualized bond determination during his nearly three-year detention. Applying the doctrine of constitutional avoidance, we concluded that Tijani’s continued mandatory detention was not authorized under § 1226(c) and that the government had to provide Tijani “a hearing ... before an Immigration Judge with the power to grant him bail unless the government establishes that he is a flight risk or will be a danger to the community.” Id.
Prieto-Romero contends that
Tijani
requires all aliens to receive bond hearings where the government bears the burden of establishing ineligibility for release. We need not resolve the issue because Prieto-Romero cannot demonstrate prejudice.
See Getachew v. INS,
C.
Lastly, Prieto-Romero complains that the IJ set an excessively high bond amount. The statute does not permit us to reach the merits of this claim. Section 1226(e) provides: “The Attorney General’s discretionary judgment regarding the application of this section shall not be subject to review. No court may set aside any action or decision by the Attorney General under this section regarding the detention or release of any alien or the grant, revocation, or denial of bond or parole.”
Prieto-Romero relies on
Doan v. INS,
CONCLUSION
An alien whose removal order is administratively final, but whose removal is stayed pending the court of appeals’ reso *1068-1090 lution of his petition for review, may be subject to detention under § 1226(a), but not § 1231(a)(2) or (a)(6). Section 1226(a) does not manifest a clear congressional intent to authorize prolonged and indefinite detention; applying the canon of constitutional avoidance, we construe the statute as not authorizing such detention. All the same, we reject Prieto-Romero’s Zad-vydas challenge to his three-year detention under § 1226(a). His detention remains statutorily authorized, because he has not established that there is no significant likelihood of his removal in the reasonably foreseeable future. The government will be able to remove him to Mexico in the event that his petition for review of his administratively final order of removal is denied. Prieto-Romero has not been denied procedural due process while in custody. He received a bond hearing that afforded him an individualized determination of the government’s interest in his continued detention by a neutral decisionmaker. The IJ concluded that Prieto-Romero was not a flight risk or a danger to the community, and so merited release on bond. The IJ’s subsequent discretionary judgment that a $15,000 bond was necessary to ensure that Prieto-Romero appears at removal is not subject to judicial review.
AFFIRMED.
Notes
. Hereinafter, all citations are to Title 8 of the United States Code unless otherwise noted.
. 8 C.F.R. § 241.4(f) lists factors that DHS officials should “weight] in considering whether to recommend further detention or release” of an alien subject to detention under § 1231(a)(6), not one subject to detention under § 1226(a). See infra note 10 and accompanying text.
. Ordinarily, the Attorney General does not have the authority to release on bond aliens who are allegedly removable for having committed aggravated felonies. See § 1226(c)(1)(B). Although Prieto-Romero was charged with being removable as an aggravated felon, he was never subject to mandatory detention under § 1226(c) because he "was released from his criminal custody on or before October 8, 1998,” and therefore "eligible for consideration for bond under the general bond provisions of” § 1226(a). In re Adeniji, 22 I. & N. Dec. 1102, 1116 (BIA 1999). Briefly, § 303(b)(2) of the Illegal Immigration Reform and Immigrant Responsibility Act of 1996, Pub.L. No. 104-208, 110 Stat. 3009, 3009-586, specified that the "provisions of § 1226(c) shall apply to individuals released after such [transition] periods,” as might be declared by the Attorney General. An alien, like Prieto-Romero, who was "released from his non-Service custodial setting (i.e., from criminal custody)” before October 8, 1998, the date the transition period ended, was not "subject to mandatory detention under [§ 1226(c)].” Id. at 1107, 1111.
. Detention "during” the removal period is mandatory. See § 1231(a)(2). Detention "beyond” the removal period is discretionary and subject only to an administrative post-order custody review process. See § 1231(a)(6); 8 C.F.R. § 241.4. The government has not specified whether it believes § 1231(a)(2) or 1231(a)(6) is applicable to aliens in Prieto-Romero’s position, instead referring generally to its “ § 1231(a)” authority. In any event, an alien detained under either provision of § 1231(a), unlike an alien detained under § 1226(a), cannot obtain a bond hearing before an IJ. Cf. 8 C.F.R. § 236.1(c)(8).
. The provision is inartfully drafted, as one cannot say when the "latest” of the three events will occur until those events have either taken place or it is known that they can no longer ever take place. Consequently, the time between an alien's filing of a petition for review and this court’s issuance of a stay of removal falls within a lacuna in the statutory text. We consider it unlikely that Congress would have intended that DHS’s removal efforts begin as soon as an alien's removal order is administratively final,
see
§ 123l(a)(l)(B)(i), terminate when this court stays removal,
see
§ 123 l(a)(l)(B)(ii), and begin anew if and when we finally deny the petition for review. The more sensible reading of the statute is that if an alien files a timely petition for review and requests a stay, the removal period does not begin until the court of appeals (1) denies the motion for a stay
or
(2) grants the motion
and
finally denies the petition for review.
See Mariscal-Sandoval v. Ashcroft,
. The beginning of the removal period is not delayed by every judicially entered stay, because the exclusive means for judicial review of a removal order is a petition for review filed with the appropriate court of appeals. See §§ 1231(a)(l)(B)(ii), 1252(a)(5). Therefore, the entry of a stay of removal for any other reason — for example, a stay entered while a court reviews an alien's § 2241 habe-as petition or petition for review of the BIA’s denial of a motion to reopen — does not prevent the removal period from beginning.
. Our conclusion is bolstered by a comparison between the language of § 1231(a)(1)(C) and § 1324d(a), which provides for penalties of up to $500 a day for "[a]ny alien subject to a final order of removal who ...
conspires to or takes any action designed to prevent
... the alien’s departure.” (Emphasis added.) Because it is a "well-established principle of statutory construction that 'the same words or phrases are presumed to have the same meaning when used in different parts of a statute,' ”
United States v. Various Slot Machines on Guam,
.
See, e.g., Demore
v.
Kim,
. In
Nadarajah,
the government referred the alien's case to the Attorney General for review.
See
. These factors include: "(2) The detainee’s criminal conduct and criminal convictions ... (5) Favorable factors, including ties to the United States such as the number of close relatives residing here lawfully; ... (7) The likelihood that the alien is a significant flight risk or may abscond to avoid removal, including history of escapes, failures to appear for immigration or other proceedings, ... and other defaults; and (8) Any other information that is probative of whether the alien is likely to — (i) Adjust to life in a community, (ii) Engage in future acts of violence, (iii) Engage in future criminal activity, (iv) Pose a danger to the safety of himself or herself or to other persons or to property, or (v) Violate the conditions of his or her release from immigration custody pending removal from the United States.” See 8 C.F.R. § 241.4(f).
. The record does not support Prieto-Rome-ro’s contention that the IJ defied the district court’s order by verifying that he "would not have the resources to pay the bond” and then purposely setting a high bond amount to prevent his release, thereby turning a blind eye to the facts in the record that suggested he was not a flight risk. To the contrary, the district
*1067
court expressly found "that the IJ ... complied with [its] Order" to make an "individualized determination as to whether [Prieto-Romero] is a flight risk or a danger to the community.”
See Amanda J. ex rel. Annette J. v. Clark County School Dist.,
