Gustavus Woodson Smith a major general on September 19, he served in Northern Virginia as a divisional and "wing" commander, and fought in the Battle of Seven Pines near Richmond during the Peninsula Campaign. On May 31, 1862, Smith briefly took command of the Army of Northern Virginia after Gen. Joseph E. Johnston was wounded at Seven Pines, due to his being the senior major general in Johnston's army. However, Jefferson Davis replaced him with Robert E. Lee the following day, June 1. On June 2, Smith became ill and took a leave of absence to recuperate. In late August, Smith returned and
Fourth Corps, Army of Northern Virginia Commanded by temporary Lt. General Anderson, it was made up of units that before had served around Richmond and Petersburg as part of General Beauregard's Department of North Carolina and Southern Virginia. The Fourth Corps spent the winter of 1864/5 encamped around Petersburg as part of the Army of Northern Virginia. In April the Army of the Potomac, under General Ulysses Grant, broke through the defences and successfully concluded the siege of Richmond, initiating the start of the Appomattox Campaign. The Fourth Corps retreated with the rest of General Lee's Army but was largely destroyed in the Battle of Sailor's