Which writ is issued by the court in case of illegal detention of a person?

Ans – Habeas Corpus