During the American Civil War, the administration of President Abraham Lincoln dealt with Union dissenters by declaring martial law, sanctioning arbitrary arrest and detention, suspending the writ of habeas corpus that requires justification of the detention, and initiating trials by military commission rather than conventional civil courts.
The next test began with trials by a military commission that led to the landmark U.S. Supreme Court case known as Ex parte Milligan.