A writ issued to secure the release of a person found to be detained i

A writ issued to secure the release of a person found to be detained illegally is

Mandamus
Habeas corpus
Certiorari
Prohibition
This question was previously asked in
UPSC CDS-2 – 2017
The writ of Habeas Corpus is issued to secure the release of a person found to be detained illegally.
Habeas Corpus is a Latin term meaning “to have the body of”. This writ is a fundamental instrument for protecting individual liberty against arbitrary detention. When issued, it commands the detaining authority to produce the detained person before the court and justify the grounds of detention. If the detention is found to be unlawful, the court orders the release of the person.
Mandamus is a writ issued by a superior court to a lower court, tribunal, or public authority to perform a public duty that they have refused or failed to perform. Certiorari is a writ issued by a superior court to quash the order of a lower court or tribunal or public authority. Prohibition is a writ issued by a superior court to a lower court or tribunal to prevent it from exceeding its jurisdiction or acting contrary to the rules of natural justice. Among the given options, only Habeas Corpus is directly related to securing the release of a person from illegal detention.