He entered the Union Army in September 1861 as a captain, commanding a company which he had raised as part of the 92nd New York Volunteer Infantry. He took part in several battles, including the Fair Oaks, Seven Days, and Petersburg. He was wounded at Petersburg, and was mustered out as a lieutenant colonel in December, 1864.