Habeas Corpus, in the Federal Court, is a petition that claims that you are being detained against your US constitutional rights. A Writ of Habeas Corpus is a civil proceeding that is available in both State and Federal Court to challenge the legality of imprisonment.Habeas corpus is most often used when a person is being detained against their will and is suffering a deprivation of liberty. The state writ of habeas corpus is a legal mechanism that allows individuals to challenge their detention or imprisonment. The "Great Writ" of habeas corpus is a fundamental right in the Constitution that protects against unlawful and indefinite imprisonment. The law in the area is an intricate weave of statute and case law. A writ of habeas corpus is a powerful legal tool that allows individuals to challenge a criminal conviction or sentence. The required application for a person currently incarcerated in TDCJ to file for a writ of habeas corpus under Texas Code of Criminal Procedure, Article 11.07. The trial court sentenced Montgomery to prison for an aggregate term of 61 years to life. Please note that the term, "federal habeas corpus," refers to habeas corpus in a federal court.