After being imprisoned at Johnson's Island, Ohio, he was promoted to brigadier general in November 1864 and led a brigade in Early's Valley Campaigns of 1864, where he fought in the battles of Opequon, Fisher's Hill, and Cedar Creek. He was badly wounded at the Battle of Five Forks. During the final operations in early 1865 around Richmond, he commanded a cavalry brigade under Fitzhugh Lee.