Habeas corpus is a legal principle guaranteed in many legal systems. It provides an individual a right to question their detention before a court of law. This fundamental right is essential for safeguarding personal freedoms. When someone is confined, they can file a writ of habeas corpus, which requires the government to demonstrate the legal gro