Ex parte Merryman, 17 F. Cas. 144 (C.C.D. Md. 1861) (No. 9487), is a well-known U.S. federal court case which arose out of the American Civil War. It was a test of the authority of the President to suspend "the privilege of the writ of habeas corpus" under the Constitution's Suspension Clause. Chief Justice Roger Taney, sitting as a federal circuit court judge, ruled that the authority to suspend habeas corpus lay with Congress, not the president. President Lincoln ignored the ruling, as did the Army under Lincoln's orders. The case was rendered moot by Lincoln's subsequent order in February 1862 to release almost everyone held as a political prisoner.
Read more about Ex Parte Merryman: Background, The Case, Aftermath