In 1861, Virginia joined the Confederate States of America. Fearing that the Confederacy would take control of the facility, the shipyard commander Charles Stewart McCauley ordered the burning of the shipyard on 21 April 1861. The Confederate forces did, in fact, take over the shipyard, and did so without armed conflict through an elaborate ruse orchestrated by civilian railroad builder William Mahone (then President of the Norfolk and Petersburg Railroad and soon to become a famous Confederate officer). He bluffed the Federal troops into abandoning the shipyard in Portsmouth by running a single passenger train into Norfolk with great noise and whistle-blowing, then much more quietly, sending it back west, and then returning the same train again, creating the illusion of large numbers of arriving troops to the Federals listening in Portsmouth across the Elizabeth River (and just barely out of sight). The capture of the shipyard allowed a tremendous amount of war material to fall into Confederate hands. 1,195 heavy guns were taken for the defense of the Confederacy, and employed in many areas from Hampton Roads all the way to Fort Donelson Tennessee, Port Hudson, and Fort de Russy, Louisiana. The Union forces withdrew to Fort Monroe across Hampton Roads, which was the only land in the area which remained under Union control.