Major Coker answered the call to defend his state when the Civil War began, and fought for the 6th and 9th South Carolina Regiments at First Manassas, the Battle of Malvern Hill, Second Manassas, the Battle of Harpers Ferry, and Antietam.
In March 1865, Coker set out with a large box of food supplies for the Confederate forces in Richmond.