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
General officers in the Confederate States Army combat, to be the senior general officer in the CSA. That seniority strained the relationship between Joseph E. Johnston and Jefferson Davis. Johnston considered himself the senior officer in the Confederate States Army and resented the ranks that President Davis had authorized. However, his previous position in the U.S. Army was staff, not line, which was evidently a criterion for Davis regarding establishing seniority and rank in the subsequent Confederate States Army. On February 17, 1864, legislation was passed by the Congress to allow President Davis to appoint an officer to command the Trans-Mississippi Department in the Far West, with