The Arizona Petition for Writ of Habeas Corpus Under 28 U.S.C. 2254 is a legal document filed in a federal court by a prisoner who is challenging the legality of his/her detention. The petition allows the prisoner to challenge the legality of their conviction or the conditions of their confinement. The petition is governed by federal law and can be used in any state, including Arizona. There are two types of Arizona Petition for Writ of Habeas Corpus Under 28 U.S.C. 2254. The first type is a “petition for a writ of habeas corpus ad subjiciendum,” which is a petition asking for a review of a criminal conviction or sentence on the basis of a violation of either the U.S. Constitution or state law. The second type is a “petition for a writ of habeas corpus ad prosequendum,” which is a petition challenging the legality of a prisoner’s detention or confinement in jail or prison. Both types of petitions are filed in the federal district court of the state in which the petitioner is incarcerated.