 In 1862 he entered the Union Army as a volunteer, serving until 1865, during which time he became in succession chief-of-staff to Gen. Quincy A. Gillmore in the Department of the South, and military commandant of Charleston, South Carolina, and Savannah, Georgia.He became colonel of the 103rd Regiment of U.S.Colored Infantry.