Following Chancellorsville, Hunter joined Company H in the 4th Virginia Cavalry Regiment, also known as the "Black Horse Troop", on the recommendation of General Robert E. Lee. Captured once more, he attempted escape twice and finally returned to his regiment to serve until the Confederate surrender. Wounded twice during the war, Hunter was pardoned by President Andrew Johnson on September 4, 1865.