Works, Anderson became Assistant State Engineer and served was chief engineer of the Valley Turnpike Company, a toll road which extended between Staunton and Winchester, Virginia in the Shenandoah Valley from 1838 until 1841. Early military and political careers In recognition of his engineering abilities, Anderson was assigned as an assistant engineer in the Engineer Bureau in Washington before being officially transferred to the United States Army Corps of Engineers on July 1, 1837, as a brevet second lieutenant. His primary duty with the Corps of Engineers was in the construction of Fort Pulaski to guard the Port of Savannah, Georgia. From 1838 to 1841, Anderson was chief engineer of the Valley Turnpike Company. In 1841, Anderson joined the Tredegar Iron Company in Richmond, Virginia, eventually becoming its owner in 1848. By 1860, he was a leading industrialist in the South and his foundry on the James River was one of the largest in the United States, producing steam locomotives, boilers, cables, naval hardware, and cannon. In 1852, delegate William C. Carrington, who represented Richmond in the Virginia General Assembly. Anderson won the special election to succeed him, and would be re-elected several times. He served initially alongside William F. Butler and Conway Robinson, and after A. Judson Crane resigned, alongside George N. Johnson. He was re-elected in 1853, but his fellow delegates became James A. Cowarding and Henry K. Ellyson. He failed to win election to the assembly of 1855-56, but did win election to the House of Delegates again in 1857, this time serving with Roscoe B. Heath and Richard O. Haskins. Civil War When the Civil War came, the Tredegar Iron Company emerged as the industrial heart of the Confederate States of America. Using slave and free labor, Anderson supervised ordnance and munitions production through most of the war. Anderson, a supporter of southern secession and states' rights, was commissioned a major of artillery in August 1861, and promoted to brigadier general in the Confederate Army on September 3. Initially assigned to command the Confederate forces at Wilmington, North Carolina, in April 1862, he was reassigned to the area around Fredericksburg, Virginia, opposite Union Maj. Gen. Irvin McDowell. With the mounting threat to Richmond during the Peninsula Campaign, Anderson was placed in command of the 3rd Brigade in A.P. Hill's newly formed "Light Division." During the Seven Days Battles, he led his brigade at Mechanicsville, Gaines Mill,