With the outbreak of the American Civil War, in May 1862, Sherman enlisted in the 9th Vermont Infantry. This regiment was captured at the September 1862 Battle of Harpers Ferry, a part of the Maryland Campaign. Following the capture of his regiment, the Union Army sent Sherman to Camp Douglas. Annoyed by this forced idleness, Sherman resigned his commission in January 1863 (he had attained the rank of lieutenant).