However, the right to apply for habeas corpus has long been celebrated as the most effective protection of the subject`s liberty. Lawyer Albert Venn Dicey wrote that British habeas corpus laws „do not explain a principle or define rights, but they are worth one hundred constitutional articles guaranteeing individual liberty for practical purposes.”  Habeas corpus originates from medieval English common law. It is difficult to say where it first appeared in writing, but it was codified in the Magna Carta of 1215, which granted all free men protection from unlawful imprisonment. This English law was introduced in the British colonies of North America. In return, the U.S. Constitution, which was influenced by the Magna Carta, explicitly states: „The privilege of habeas corpus may be suspended only if public safety so requires in case of rebellion or invasion.” Many other modern countries include habeas corpus mandates in their constitutions. In the habeas petitions of death row inmates, AEDPA writes additional rules that go beyond those already described. The rules apply to states that set certain standards for the competence of lawyers. In order for States to benefit from these additional restrictions, they must provide a mechanism for the appointment and compensation of a competent lawyer in post-conviction State proceedings or for the appointment of a lawyer for appeals and post-conviction appeals in a uniform procedure. Once the state court appoints a lawyer, a federal court that would have jurisdiction over the case can request a stay of execution.
The suspension expires if no application is made in a timely manner, if the inmate duly waives the right to seek federal habeas petition, or if release is denied at any stage of the federal review. Once a suspension is lifted in one of these circumstances, a new suspension can only be imposed if the applicant can overcome the presumption against successive petitions. The concept of habeas corpus was first expressed in the Magna Carta, a constitutional document imposed on King John by English landowners at Runnymede on 15 June 1215. Among the freedoms declared in the Magna Carta were: „No free man shall be captured, imprisoned, expropriated, ostracized, banished or raped in any way, and we will not answer or send against him, except by the legitimate judgment of his colleagues or by the law of the land.” This principle has developed in such a way that no one should be deprived of his or her liberty without due process. (Latin, you have the body.) A statement (court order) ordering a person or official who has detained another person to bring the prisoner before him at a specific time and place so that the court can determine the lawfulness of the detention and decide whether or not to order the release of the prisoner. Recorded in English in the 1460s as a legal loanword, habeas corpus literally means „Thou shalt have the body or person judged” in Latin, and a writing is a formal sealed order issued on behalf of a ruler, government, court, or other competent authority. Thus, a writ of habeas corpus is a court order to bring a detained person before a court to determine whether his detention is valid or not. It is an infallible security to prevent the government from detaining people for no reason.
In 1971, after the Miranda Plaza bombing, the Marcos government of Ferdinand Marcos suspended habeas corpus to quell the impending uprising after blaming the Communist Party of the Philippines for the events of August 21. Many saw it as a prelude to martial law. However, after much protest, the Marcos government decided to reinstate the complaint. The trial was again suspended when Marcos declared martial law in 1972.   Habeas corpus was also suspended in some cases during World War II, notably by the Governor of Hawaii after the attack on Pearl Harbor. In the 2010s, the complaint was the subject of numerous legal battles regarding the detention of suspected terrorists, particularly with regard to detainees held without charge at Guantánamo Bay. In 2008, the Supreme Court ruled unconstitutional the Military Commissions Act of 2006, which President Bush had signed to allow the detention of „unlawful enemy combatants” against the United States. The writ of habeas corpus is an extraordinary remedy because it gives a court the power to release a prisoner after the prisoner has been dealt with by the criminal justice system with all its procedural guarantees and remedies. For this reason, it is first for the requesting prisoner to prove that he is detained in violation of a constitutional right. If the applicant can discharge this burden with sufficient evidence, the burden is transferred to the custodian to justify detention. The writ of habeas corpus functions primarily as an investigative warrant issued to examine the reasons or grounds for detention and detention.
The injunction therefore serves as a safeguard against the detention of persons who break the law by ordering the competent law enforcement authorities to provide valid grounds for detention. Therefore, the application seeks an immediate exemption from unlawful removal by ordering immediate release, unless there are sufficient legal grounds. Historically, many Spanish territories had remedies that corresponded to habeas corpus, such as the privilege of manifestación in the Crown of Aragon or the right of the tree in the Bay of Biscay. Praecipimus tibi quod corpus A.B. in prisona nostra sub custodia tua detentum, ut dicitur, una die et causa captionis et detentionis suae, quocumque nomine praedictus A.B. censeatur in eadem, habeas coram nobis. Ad subjiciendum et recipiendum ea quae curia nostra de eo adtunc et ibidem ordinare contigerit in hac parte. And hoc nullatenus omittatis periculo incumbente. Et habeas ibi hoc breve.  To do this, activists rely on the writ of habeas corpus, a legal protection for detainees. To be accepted, an application for habeas corpus must meet the following criteria.
First, the applicant [i.e. the person seeking habeas corpus] must prove that he or she has been deprived of liberty.