On May 16, 1864, Moody was wounded in the right ankle at Drewry's Bluff during the Battle of Proctor's Creek, part of the Bermuda Hundred Campaign. Moody's regiment served with Gracie's brigade during the Siege of Petersburg until Gracie was killed by an exploding artillery shell on December 2, 1864. Moody then took command of the brigade but he was not promoted to brigadier general until March 4, 1865. Moody led the brigade until he was captured at Appomattox Court House, Virginia on April 8, 1865, the day before the surrender by General Robert E. Lee of the Army of Northern Virginia to Union Army forces led by Lieutenant General Ulysses S. Grant.