Assigned next with his regiment to the war-ending Appomattox Campaign during the spring of 1865, he participated in the battles of Five Forks (April 1) and Sailor's Creek (April 6) before his fight was brought to a swift end at Farmville, Virginia during the April 7 Battle of Cumberland Church. Engaged at that time in a sabre charge, he was toppled from his saddle as the horse he was riding was killed. Captured by Confederate troops and held briefly as a prisoner of war until General Robert E. Lee's surrender at Appomattox on April 9, he was then honorably discharged by General Order on July 12, 1865.