During the Mexican war he was twice severely wounded in a reconnaissance at Cerro Gordo, 1847, was engaged in the siege of Vera Cruz, the battles of Contreras, Churubusco, and Molino del Rey, the storming of Chapultepec, and the assault on the city of Mexico, and received three brevets for gallant and meritorious service.
In the Mexican War he won two brevets for gallantry - that of captain for Molino del Rey and that of major for Chapultepec. He served at West Point as instructor and adjutant (1849-1855), and he took part in the Utah expedition.
His services were recognized by the brevets of brigadiergeneral and major-general in the regular army.
Enlisting in a Michigan cavalry regiment in September 1861, he rose from captain to colonel, distinguished himself in the Gettysburg campaign and under Sheridan in the Shenandoah Valley, and in 1864 and 1865 respectively received the brevets of brigadier-general and major-general of volunteers.
He was, however, employed to the end of the war, and in 1867 received the brevets of brigadier-general U.S.A. and major-general U.S.A. for his services at Fredericksburg and Gettysburg respectively.