A federal prisoner at the low-security correctional institution in Allenwood, Pennsylvania brought this action pursuant to 28 U.S.C. § 1381, challenging a Congressional ban on the use of federal funds to distribute certain sexually explicit material to prisoners, along with its implementing regulation. The District Court rejected plaintiffs argument that the ban violates the First Amendment and dismissed his complaint, finding the prohibition to be reasonably related to the legitimate penological goal of prisoner rehabilitation. Because we find that the District Court erred in resolving the constitutional issue without an adequate factual basis, we will reverse and remand for further proceedings consistent with this opinion.
I.
The Ensign Amendment, originally enacted as part of the Omnibus Consolidated Appropriations Act of 1997, prohibits the use of funds appropriated for the United States Bureau of Prisons (the “BOP”) to “distribute or make available any commercially published information or material to a prisoner ... [when] such information or material is sexually explicit or features nudity.” Pub.L. No. 104-208, § 614, 110 Stat. 3009-66 (1996). The amendment has been reenacted in each subsequent appropriations act, and is now codified at 28 U.S.C. § 530C(b)(6). An implementing *125 regulation promulgated by the BOP defines the key terms of the amendment as follows: “sexually explicit” means “a pictorial depiction of actual or simulated sexual acts including sexual intercourse, oral sex, or masturbation”; “features” means that the publication in question “contains depictions of nudity or sexually explicit conduct on a routine or regular basis or promotes itself based upon such depictions in the case of individual one-time issues”; and “nudity” means “a pictorial depiction where genitalia or female breasts are exposed.” 28 C.F.R. § 540.72(b). 1 The definition of “features” includes an exception for material that contains nudity “illustrative of medical, educational, or anthropological content.” Id. As examples of publications that do not “feature nudity,” a 1996 program statement released by the BOP cites National Geographic, Our Body, Our Selves, the swimsuit issue of Sports Illustrated, and the Victoria’s Secret catalog. Fed. Bureau of Prisons Program Statement 5266.07 (Nov. 1, 1996). The regulations are clearly targeted to the receipt by inmates of softcore and hardcore pornography.
Plaintiff Marc Ramirez filed suit in the Middle District of Pennsylvania in 1997, naming as defendants the United States Attorney General, the director of the BOP, and the warden of the Allenwood institution (collectively, the “government”). Alleging that magazines addressed to him were rejected as either being “sexually explicit” or “featuring nudity,” Ramirez challenged the constitutionality of the Ensign Amendment and its implementing regulation on First Amendment grounds. After a series of procedural delays, the District Court finally reached the merits of Ramirez’s complaint on a government motion to dismiss. Applying the familiar test for constitutional challenges to prison regulations set out in
Turner v. Safley,
On appeal, Ramirez argues that the District Court erred in finding a rational connection between the ban on pornography and rehabilitation in the absence of any factual record, and in failing to engage in a “contextual, record-sensitive analysis” before determining the ban’s overall reasonableness under
Turner.
The District Court had jurisdiction under 28 U.S.C." § 1331, and we exercise jurisdiction pursuant to 28 U.S.C. § 1291. We review
de novo
the District Court’s decision to grant the government’s motion to dismiss.
Pryor v. National Collegiate Athletic Ass’n,
II.
In
Turner v. Safley,
the Supreme Court recognized an enduring tension between two conflicting principles in
*126
operation whenever a prisoner brings a constitutional challenge to a law or regulation affecting prison policy. The first principle, that “[p]rison walls do not form a barrier separating prison inmates from the protections of the Constitution,” must be balanced against the practical reality that the judicial branch is ill-suited for running the country’s prisons, a task committed to the particular expertise of the legislative and executive branches.
Turner,
To date, the United States Court of Appeals for the D.C. Circuit is the only federal appellate court to have considered the merits of a First Amendment challenge to the Ensign Amendment and its implementing regulation. In
Amatel v. Reno,
The Amatel court did not see the need for an evidentiary record, holding that its own common sense was sufficient to verify the rational connection between the Ensign Amendment’s proscriptions and the asserted rehabilitative goal. Id. It did, however, cite a body of scholarly research to support the reasonableness of the proposition that pornography leads to male ob- *127 Rectification of women, and that certain types of pornography can lead to male aggression and desensitize viewers to violence and rape. See id. at 199-200. The court determined that none of the three other Turner factors undermined the overall reasonableness of the Ensign Amendment and its implementing regulation.
Our own court has considered the constitutionality of a restriction similar to the Ensign Amendment, albeit in a different context than the one here. In
Waterman v. Farmer,
A.
We addressed whether the requisite rational connection between a prison restriction and a legitimate penological interest can be found on the basis of “common sense” alone in
Wolf v. Ashcroft,
While the connection may be a matter of common sense in certain instances, such that a ruling on this issue based only on the pleadings may be appropriate, there may be situations in which the connection is not so apparent and does require some factual development. Whether the requisite connection may be found solely on the basis of “common sense” will depend on the nature of the right, the nature of the interest asserted, the nature of the prohibition, and the obviousness of its connection to the proffered interest. The showing required will *128 vary depending on how close the court perceives the connection to be.
Id. at 308-09. On remand, we directed the district court to “describe the interest served, consider whether the connection between the policy and interest is obvious or attenuated — and, thus, to what extent some foundation or evidentiary showing is necessary — and, in light of this determination, evaluate what the government has offered.” Id. at 309.
Turning to the appeal before us, we find that the District Court erred in evaluating the Ensign Amendment and its implementing regulation under Turner’s first prong on a motion to dismiss, without any analysis or inquiry into the interests involved and the connection between those interests and the restriction at issue. First, although the District Court correctly identified rehabilitation as a legitimate penological interest,
see O’Lone v. Estate of Shabazz,
While the obvious end of rehabilitation is the prevention of further lawbreaking once offenders are released from prison, the scope of the interest itself has never been defined by the Supreme Court.
See Amatel,
We may gather from the District Court’s reliance upon the scholarly works discussed in
Amatel
that, at the very least, it believed the government’s specific rehabilitative goals to include the prevention of sex crimes and violence against women.
See Amatel,
By no means do we wish to suggest that the only legitimate target of the En
*130
sign Amendment is the class of convicted federal sex offenders. We recognize that the government has wide latitude in pursuing legitimate rehabilitative goals; courts may not substitute their own judgment in place of that of the legislative or executive branches where the position advanced by the government is not “irrational or unreasonable” but simply “less reasonable” than that of the prisoner-plaintiffs.
See Waterman,
B.
As to whether an evidentiary basis is required for the remaining three
Turner
prongs, we repeat our observation that “we have historically viewed these inquiries as being fact-intensive ... [requiring] ‘a contextual, record-sensitive analysis.’”
Wolf,
The third and fourth
Turner
factors require consideration as to whether accommodating the asserted right would have an adverse impact “on guards and other inmates[] and on the allocation of prison resources,” as well as a determination as
*131
to whether alternatives exist that can accommodate the right “at
de minimus
costs to valid penological interests.”
Turner,
III.
For the reasons discussed above, we find that the District Court erred in determining that the Ensign Amendment and its implementing regulation were reasonably related to the legitimate government interest of rehabilitation without an adequate factual basis for so doing. 5 Accordingly, we will reverse the judgment of the District Court entered on February 28, 2002 and remand with instructions to conduct an appropriate proceeding before reevaluating the amendment and regulation under Turner.
Notes
. Before the Ensign Amendment’s passage, BOP regulations governing the distribution of sexually explicit publications permitted the warden of an institution to reject material that "by its nature or content poses a threat to the security, good order, or discipline of the institution, or facilitates criminal activity.” 28 C.F.R. § 540.71(b)(7). These regulations are still in place to the extent that they involve material falling outside the scope of § 540.72(b).
. Inmates have no right to receive materials that constitute obscenity.
Miller v. California,
. We further note that, “while a court can bolster its finding of a connection by reference to decisions of other courts on the same issue,” it must engage in at least some independent analysis of whether the connection is rational.
Wolf,
. With regard to the "availability of alternate means of exercising the right at stake,” factual development does not appear necessary because the relevant right "must be viewed sensibly and expansively.”
Waterman,
. We have not addressed the government’s contention that the Ensign Amendment and its implementing regulation satisfy the
Turner
criteria because they are reasonably related to the legitimate penological interests of prison security, deterrence, and punishment. Although the District Court mentioned "institutional security” as an interest to which the ban on sexually explicit materials was rationally connected and stated that accommodating the right "would increase the risks of sexual crimes and misconduct,” its analysis focuses on the rehabilitative interest discussed in
Amatel
and
Waterman. Cf. Mauro v. Arpaio,
