What is habeas corpus?

The writ of habeas corpus is an order issued by a court of competent jurisdiction, directed to the person detaining another, commanding him to produce the body of the prisoner at a designated time and place, and to show sufficient cause for holding in custody the individual so detained.