An application for a Writ of Habeas Corpus is filed when a person seeks relief from unlawful detention or imprisonment. What Is Habeas Corpus?Habeas corpus is a kind of petition that you can file in federal court to claim that your imprisonment violates federal law. The writ of habeas corpus is the remedy to be used when any person is restrained in his liberty. Habeas Corpus, in the Federal Court, is a petition that claims that you are being detained against your US constitutional rights. Federal habeas corpus is a procedure under which a federal court may review the legality of an individual's incarceration. What is habeas corpus? The literal meaning of habeas corpus is "you should have the body". This practice advisory is an introduction to the law of habeas corpus in the immigration context. It's crucial to understand its role in the justice system.