The Second Corps thus rejoined the main body of the Army of Northern Virginia, and Maj. Gen. John B. Gordon was placed in command on December 20, 1864. Gordon commanded the corps, the "left wing" of Lee's depleted army, until it was surrendered at Appomattox Court House, Virginia, on April 9, 1865. A significant action conducted while Gordon was in command was the Battle of Fort Stedman, which began with a surprise attack by the corps, which achieved some success before it was repulsed by Union reserves. Gordon's command also was in the van of the army during its last combat near Appomattox Court House. Gordon and Second Corps led the surrender parade of Confederate infantry.
