During the American Civil War, Cooper fought in the Confederate States Army. He was captured at Fort Donelson in Tennessee in 1862.