Longstreet's men rejoined the Army of Northern Virginia in time for the Gettysburg Campaign. Anderson fought around Devil's Den and the Wheatfield at Gettysburg, where he was wounded. He recuperated in the Charleston area while Longstreet's Corps went to Georgia. Anderson did not rejoin his men until the Siege of Knoxville. He saw heavy action in 1864 at the Wilderness, Spotsylvania, Cold Harbor, and the operations around Richmond and Petersburg. He surrendered with Lee at Appomattox Court House in April 1865.