Habeas corpus
Habeas corpus ( ) is a legal procedure invoking the jurisdiction of a court to review the unlawful detention or imprisonment of an individual, and request the individual's custodian (usually a prison official) to bring the prisoner to court, to determine whether their detention is lawful. The right to petition for a writ of habeas corpus has long been celebrated as a fundamental safeguard of individual liberty.