Habeas Corpus is a writ that protects against unlawful detention and requires the production of the detained person before a court.