When McClellan retired to Harrison’s Landing after the final battle of the Seven Days (Malvern Hill, on July 1) the direct threat to Richmond was ended. Lee had a breathing space to organize the army and take steps to meet the threat posed by John Pope’s Federals advancing south from Washington.
A.P. Hill’s Division was transferred to Jackson’s Command and Whiting’s Division was attached to Longstreet’s Command. Magruder was transferred to the West and his command split up. Longstreet’s Division was split up between Kemper and Wilcox so that Longstreet could be put in command of five divisions as senior officer. The army corps and the rank of lieutenant general did not yet exist in the Confederate army.