Blog
Habeas Corpus, Ex Parte Merryman and the Writ That Tests Every Detention
In 1861 Chief Justice Taney told Lincoln he could not suspend habeas corpus. How the writ works, who can use it, and why it matters to immigration detainees in 2026.
In the early hours of May 25, 1861, Union soldiers came to the farmhouse of John Merryman near Cockeysville, Maryland, north of Baltimore, woke him, and took him to Fort McHenry. Merryman was a wealthy landowner and an officer in a Maryland militia unit, and the army suspected him of helping to burn railroad bridges in April to stop Union troops from reaching Washington. No civilian court had charged him. No judge had issued a warrant. His lawyer petitioned the Chief Justice of the United States, Roger Taney, whose circuit duties in those days included Maryland. Taney issued a writ of habeas corpus ordering the fort's commander to bring Merryman before him and explain the legal basis for holding him. The commander sent an aide with a polite letter instead: the president had authorized him to suspend the writ. What happened next became one of the sharpest confrontations between a chief justice and a president in American history, and the question it raised has never quite been put away.
In short: Habeas corpus is the legal order that forces the government to justify holding a person. In Ex parte Merryman in 1861, Taney ruled that only Congress, not the president, could suspend it; Lincoln did not comply, and Congress later authorized suspension. Today the writ is the main way immigration detainees and others in federal custody get a judge to review whether they are being held lawfully.
What the writ actually does
The phrase is Latin for, roughly, "you shall have the body." A writ of habeas corpus is an order from a court to whoever is holding a prisoner, directing them to produce the person and show the legal authority for the detention. It does not decide whether the prisoner is guilty of anything. It asks a narrower and more basic question: is there a lawful reason to hold this person at all?
That narrow question is what makes the writ powerful. It is a check that works even when everything else has broken down. If someone has been held without charges, held after their sentence should have ended, held by an official who had no authority to arrest them, or held under a law that is itself unconstitutional, the writ is how a court finds out and orders a release.
The writ came to the American colonies from English law, where it had been developed over centuries as a check on the Crown, and strengthened by Parliament in the Habeas Corpus Act of 1679. The framers took it seriously enough to protect it in the body of the Constitution, before the Bill of Rights existed. Article I, Section 9 says the privilege of the writ "shall not be suspended, unless when in Cases of Rebellion or Invasion the public Safety may require it."
Notice where that sentence sits. Article I is about Congress. The suspension clause appears among the limits on legislative power, which is the textual heart of Taney's argument in 1861.
Taney against Lincoln
When the army refused to produce Merryman, Taney wrote an opinion, filed in late May and sent to Lincoln. The argument was straightforward. The power to suspend the writ appears in the article on Congress. The president's powers, listed in Article II, include no such authority. Even the English king, Taney noted, could not suspend the writ without Parliament. The president's duty to take care that the laws be faithfully executed did not give him power to set aside one of the most basic of them. Taney called on the president to perform that duty by enforcing the judgment of the court.
He also acknowledged that he could do nothing more. The fort was held by the army; the court had no force of its own. Taney said as much in his opinion, which made it partly a ruling and partly a public appeal.
Context matters here, and it complicates the story for everyone. Taney was the author of Dred Scott four years earlier, deeply sympathetic to the South, and was seen by many in the North as an enemy of the Union cause. Maryland, a slave state surrounding the capital on three sides, was on the edge of secession. Mobs had attacked Union soldiers passing through Baltimore in April. Washington was in real danger of being cut off. Lincoln had authorized military commanders to suspend the writ along the route between Philadelphia and Washington precisely because he feared losing the capital.
Lincoln did not release Merryman. On July 4, 1861, in a message to Congress meeting in special session, he defended his decision without mentioning Taney by name. His argument was twofold. First, the Constitution does not say which branch may suspend the writ, and since the clause was written for emergencies, it could not have been meant to leave the country helpless when Congress was not in session. Second, and more famously, he asked whether all of the laws but one should go unexecuted, and the government itself fall apart, so that one law would not be violated. That is a paraphrase of a well-known passage; his point was that preserving the government was the precondition for every law.
Congress eventually settled the immediate question. The Habeas Corpus Act of 1863 authorized the president to suspend the writ during the rebellion. Merryman himself was released from the fort later that summer and handed over to the civilian courts. He was indicted for treason, but the case never went to trial.
Who was right?
Most constitutional scholars today think Taney had the better reading of the text: the suspension power belongs to Congress. Many also think Lincoln faced a genuine emergency with Congress out of session and acted on the best available judgment. Both things can be true.
The Supreme Court spoke after the war, in Ex parte Milligan in 1866, a case about an Indiana man sentenced to death by a military commission. The Court held that civilians could not be tried by military tribunals where the civilian courts were open and functioning, even in wartime. The Constitution, the Court wrote, was a law for rulers and people equally, in war and in peace. Milligan is the Court's most direct answer to the idea that emergencies dissolve constitutional limits.
The lesson most people draw from Merryman is that the writ is only as strong as a government's willingness to obey courts. That lesson has two sides. A president who ignores a habeas order damages something hard to rebuild. A court that issues orders it cannot enforce has to choose its battles. The system holds when officials of every party treat compliance as non-negotiable, and it weakens every time one of them does not.
Guantanamo: the modern test
For most of the twentieth century, habeas was mostly a tool for state prisoners challenging their convictions in federal court, a route Congress narrowed considerably in 1996 with the Antiterrorism and Effective Death Penalty Act. Then, after September 11, the old question returned in its original form: could the executive hold people with no judicial review at all?
The Bush administration held hundreds of detainees at Guantanamo Bay, Cuba, on the theory that federal courts had no jurisdiction there. In Rasul v. Bush in 2004, the Supreme Court held that the federal habeas statute reached the base. The same year, in Hamdi v. Rumsfeld, it held that an American citizen held as an enemy combatant was entitled to a meaningful opportunity to challenge his detention before a neutral decision-maker. Congress then passed laws stripping the courts of habeas jurisdiction over the detainees. In Boumediene v. Bush in 2008, a 5 to 4 Court held that the detainees had a constitutional right to habeas that Congress could not take away without an adequate substitute, and that the procedures provided were not adequate.
The dissenters in Boumediene made a serious argument: that the Court was extending constitutional protection to foreign fighters held abroad in wartime, something it had never done, and second-guessing the political branches on national security. The majority's answer was that the writ exists precisely to stop the government from deciding by itself, without review, who may be held.
Immigration detention and the writ in 2026
Today the most common use of habeas in federal court outside criminal convictions is by people in immigration detention. The reason is structural. Immigration courts belong to the Justice Department, not the judicial branch, and the laws governing deportation sharply limit what federal courts can review. But a person held by Immigration and Customs Enforcement can still file a habeas petition in federal district court arguing that their detention itself is unlawful: that they have been held too long without a bond hearing, that they were arrested in violation of the law, or that they are being held under a statute that does not apply to them.
The Supreme Court has not always been receptive. In DHS v. Thuraissigiam in 2020, it held that an asylum seeker placed in expedited removal could not use habeas to challenge the denial of his claim, because he was seeking not release but a new chance to stay. Critics argued the ruling narrowed the writ to a historical form that ignored its purpose.
In 2025, the writ moved to the centre of the national argument. When the administration invoked the Alien Enemies Act of 1798 to remove Venezuelan men it accused of gang membership, detainees and their lawyers sued. In April 2025, the Supreme Court ruled in Trump v. J.G.G. that challenges had to be brought as habeas petitions in the districts where the men were confined, and, notably, that every justice agreed the detainees were entitled to notice and an opportunity to seek habeas before removal. Weeks later the Court acted again in a case from Texas, A.A.R.P. v. Trump, blocking removals from one district and saying the notice provided had not been enough. During the same period, a senior White House official said publicly that the administration was looking at suspending habeas corpus. No suspension has been declared. But for the first time in generations, the question Taney and Lincoln fought over was being discussed as a live option.
How a petition moves through a federal court
The mechanics are less dramatic than the history, and worth knowing if someone you care about is detained. What follows is a general outline, not legal advice.
- The petition. A detained person, or a lawyer or "next friend" acting for them, files a petition in the federal district court with jurisdiction over the place of confinement. For people in federal or immigration custody, the usual statute is 28 U.S.C. § 2241. The petition names the official who has custody, often the warden or the local ICE field office director, and explains why the detention is unlawful.
- The order to respond. If the petition is not dismissed at the outset, the judge orders the government to "show cause," meaning to file a written answer explaining the legal basis for holding the person.
- The stay of transfer. In immigration cases, lawyers often ask the court at the same time to bar the government from moving the person out of the district, since a transfer can complicate which court has jurisdiction. Whether a judge grants that depends on the case.
- The hearing or ruling. The judge may decide on the papers or hold a hearing. If the detention is unlawful, the court can order release, order a bond hearing, or order some other remedy the law allows.
- Appeal. Either side may appeal to the circuit court, and from there seek Supreme Court review.
Speed matters. A petition filed after a person has been moved to another state, or removed from the country, is far harder to win. That practical reality is why so many of the 2025 fights turned on notice: without warning, the right to petition can exist on paper and vanish in practice.
The strongest case for executive power, and the answer
The best argument for broad executive power over detention runs like this. In a real emergency, a president has to act faster than Congress or the courts can. Judges are not experts in security or immigration. A flood of habeas petitions can tie up courts and enforcement alike. The Constitution's suspension clause recognizes that the writ can give way in rebellion or invasion.
All of that has something to it. The answer is in the clause itself. It permits suspension only in rebellion or invasion, and only when public safety requires it, and its placement in Article I signals that the decision belongs to the branch most answerable to voters as a whole. Even Lincoln, in the gravest crisis the country has faced, ultimately sought Congress's authorization. The writ is not a technicality that slows down good policy. It is the mechanism that lets a court ask a single question that every free society needs answered: on what authority is this person being held? A government confident in its answer should not fear the question.
What you can do
- Follow detention and immigration cases. Our immigration and ICE coverage tracks the lawsuits, raids and policies, and the courts coverage follows the judges deciding them.
- Read what the Court decides on the emergency docket. Court Watch lists this term's Supreme Court opinions with the Court's summaries and the emergency docket, where many detention fights arrive first.
- Help someone find a lawyer. People in immigration detention have no right to a government-appointed lawyer. The organizations directory lists immigrant rights and legal aid nonprofits in every state; many need volunteers, interpreters and donations. This is general information, not legal advice; anyone facing detention should talk to a qualified immigration lawyer.
- Ask Congress where it stands on suspension. The power belongs to Congress. Use the representatives lookup to find your members' contact forms and ask whether they would vote to authorize any suspension of habeas corpus, and under what conditions.