The writ of Habeas Corpus is a legal order in which a person under arrest or in prison must be brought before a court to determine if their imprisonment or detention is lawful. It is a fundamental safeguard against illegal detention and thus directly relates to personal liberty.