The army, when first organized was called the (Confederate) Army of the Potomac. It was formed October 22, 1861. Confederate General P. G. T. Beauregard was first given command of what was called the "Alexandria Line" on May 31, 1861. He joined his troops near Manassas, Virginia on June 2. He planned an attack on Washington, D.C. which first required pushing the Union army back behind Bull Run. He called for additional support from Joseph E. Johnston's army in the Shenandoah Valley. On the morning of July 21, 1861, Beauregard planned a surprise attack on the Union forces that failed. He was driven back until the afternoon, when Johnston's troops arrived by train. The Confederates were then able to push the Union forces back and created a victory out of a near-disaster. Both Beauregard and Johnston were full generals. But Johnson took over command of the two armies which were now merged into one. Confederate President Jefferson Davis did not like or agree with Beauregard. There was a series of verbal disputes with Beauregard following Johnston taking command. Possibly as a result, Beauregard was sent west in January 1862 to serve as second in command in the Army of Mississippi.