The Confederates had an army nearby, which was commanded by P.G.T. Beauregard. After McDowell's army started marching towards Beauregard's army, Joseph E. Johnston came to Manassas Junction with his army from the Shenandoah Valley. Johnston was in command of the entire Confederate army and Beauregard was his second-in-command.