 The Confederate forces held their position, but the battle was extremely bloody for both sides, and Lee withdrew the Army of Northern Virginia back across the Potomac River, ending the invasion.On October 10, Jackson was promoted to lieutenant general, being ranked just behind Lee and Longstreet and his command was redesignated the Second Corps.Before the armies camped for winter, Jackson's Second Corps held off a strong Union assault against the right flank of the Confederate line at the Battle of Fredericksburg, in what became a Confederate victory.