Writ for anyone detained without lawful authority is called writ of habeas corpus. A writ of habeas corpus may be issued against any person or authority who has illegally detained or arrested any person. An application for the writ of habeas corpus may be made by the person illegally detained. But if the prisoner himself is unable to make such application, it can be made by any other person having interest in the prisoner. Thus, a wife, a father, or even a friend may in such circumstances make an application for the writ of habeas corpus. He should not, however, be a total stranger. The writ of habeas corpus provides a prompt and effective remedy against illegal restraints. The principal aim is to provide for a swift judicial review of alleged unlawful. If the court comes to the conclusion that there is no legal jurisdiction for the imprisonment of the person concerned, the court will pass an order to set him at liberty forthwith’. Thus, the object of the writ of habeas corpus is to release a person from illegal detention and not to punish the detaining authority.
Law for Nations has represented a lot of writ of habeas corpus successfully.