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
Army of Northern Virginia in the first six months from about 46,380 to 62,230 soldiers. The army was assigned in July to the Defense District of North Carolina and Richmond. In the course of the Richmond-Petersburg Campaign the number of soldiers temporarily grew to 82,633 while parts of the Army were under the command by Lieutenant General Early in Shenandoah Valley. In 1864 the Army of Northern Virginia fought against the more than twice as strong Potomac-, James- and Shenandoah Army in Grant's Overland Campaign, Early's Raid against the Baltimore and Ohio Railroad, the Richmond-Petersburg Campaign, and Shenandoah Campaign in the Shenandoah Valley. The