It was officially created and named following the Battle of Sharpsburg in 1862, but comprised units in a corps organization for quite some time prior to that.
General Jackson commanded what became the Second Corps from the end of the Seven Days Campaign on July 13, 1862, until his death after the Battle of Chancellorsville in May 1863.
The corps' finest moment came during the Battle of Chancellorsville when Jackson led the famous enveloping left flank attack that routed much of Maj. Gen. Joseph Hooker's Federal Army of the Potomac.
Early's Army of the Valley, the bulk of which came from the Second Corps, sustained heavy losses in the battles at Winchester, Fisher's Hill, and Cedar Creek.
[1] The Second Corps thus rejoined the main body of the Army of Northern Virginia, and Maj. Gen. John B. Gordon was placed in command on December 20, 1864.
Gordon commanded the corps, the "left wing" of Lee's depleted army, until it was surrendered at Appomattox Court House, Virginia, on April 9, 1865.
A significant action conducted while Gordon was in command was the Battle of Fort Stedman, which began with a surprise attack by the corps, which achieved some success before it was repulsed by Union reserves.