Habeas Corpus, which literally means 'to have the body', is a writ used to bring a prisoner or other detainee before the court to determine if the person's imprisonment or detention is lawful. It is considered a fundamental bulwark of personal liberty.