The remaining regiment fought as part of Brig. Gen. William Terry's brigade (which itself was the remnant of the Stonewall Division) in the Valley Campaigns of 1864 under Jubal A. Early. It figured prominently in the Battle of Monocacy on July 9, 1864, routing the Union defenders and opening the road to Washington. Early's army was eventually defeated in the Valley by Philip Sheridan at the Battle of Cedar Creek and they rejoined Robert E. Lee and the Army of Northern Virginia for the Siege of Petersburg and the Appomattox Campaign. Of the 6,000 men who served in the Stonewall brigade during the war, by the time of the surrender at Appomattox Court House, only 219 soldiers were left, none above the rank of captain.