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 previous name, the Confederate Army of the Potomac) from June 20 to July 20, 1861. His forces consisted of six brigades, with various militia and artillery from the former Department of Alexandria. During his command, Gen. Beauregard is noted for creating the battle flag of the army, which came to be the primary battle flag for all corps and forces under the Army of Northern Virginia. The flag was designed due to confusion during battle between the Confederate "Stars and Bars" flag and the flag of the United States. Beauregard continued commanding these troops as the new First Corps under