On June 26, Williams division was transferred to the Army of Virginia, under Maj. Gen. John Pope, for the Northern Virginia Campaign. In the Battle of Cedar Mountain, Banks's Corps was again up against Jackson, and was again defeated. Williams' division did not reach the Second Battle of Bull Run until after the battle was over.