At the Battle of Boydton Plank Road, October 27, 1864, the division commanders were Generals Thomas W. Egan and Mott, the 1st Division (Nelson A. Miles's), being retained in the trenches. In November, 1864, Hancock was assigned to other duty, and Major General Andrew A. Humphreys, chief of staff to the Army of the Potomac, succeeded to his position. Humphreys was in command during the final campaign, the divisions being under Generals Miles, William Hays, and Mott. The corps fought its last battle at Farmville on April 7, 1865, two days before Lee's surrender. In this final action Brigadier General Thomas A. Smyth of Hays' 2nd Division, was killed. Smyth was an officer with a brilliant reputation, and at one time commanded the famous Irish Brigade.