Arizona Petition for a Writ of Habeas Corpus Under 28 U.S.C. 2241 is a legal document filed in federal court which requests that a person be released from unlawful detention. A petition for a writ of habeas corpus is typically filed when a person believes that they are being illegally detained or imprisoned by a government entity. This type of petition may be used to challenge the legality of a conviction or sentence, or to challenge the legality of the detention itself. There are two types of Arizona Petition for a Writ of Habeas Corpus Under 28 U.S.C. 2241: a first petition and a successive petition. A first petition is used when a person is seeking to challenge the legality of their detention or conviction for the first time. A successive petition is used when a person is seeking to challenge the legality of their detention or conviction after a previous petition has been denied.