Upon his return to Boston he found the nation in the midst of a Civil War. He enlisted in Company H, Second Maine Volunteers on April 26, 1861, for six months. As a lieutenant, he fought in Bull Run, the Peninsular Campaign, Antietam, and Chancellorsville. He was a second lieutenant when his service ended on June 9, 1863.