What is a Writ of Habeas Corpus?
A writ of habeas corpus is a judicially enforceable order issued by a court of law to a prison official ordering that a prisoner be brought to the court so it can be determined whether or not that prisoner had been lawfully imprisoned and, if not, whether he or she should be released from custody. A habeas corpus petition is a petition filed with a court by a person who objects to his own or another's detention or imprisonment. The petition must show that the court ordering the detention or imprisonment made a legal or factual error. The right of habeas corpus is the constitutionally bestowed right of a person to present evidence before a court that he or she has been wrongly imprisoned.
Where Our Right of Habeas Corpus Comes From
The right of writs of habeas corpus are granted in Article I, Section 9, clause 2 of the Constitution, which states, "The Privilege of the Writ of Habeas Corpus shall not be suspended, unless when in Cases of Rebellion or Invasion the public Safety may require it."