After admission to the bar in 1840, Randolph practiced law in
Charlottesville, Virginia, and he and Mary lived at the family's
Edgehill plantation. They moved to the capital of Richmond between 1849 and 1851. Randolph became active in the community as well as continued a law practice. He founded the Richmond Mechanics' Institute and was an officer in the
Virginia Historical Society. As the
Confederacy formed after southern states began seceding from the Union following the election of
Abraham Lincoln as president, the United States divided into two hostile camps and the sections moved toward open conflict. Richmond voters elected Randolph and fellow attorneys
William H. McFarland and
Marmaduke Johnson (Lawyer and Soldier) as their representatives to the
Virginia Secession Convention of 1861. Despite Randolph's speech in favor of secession, the first secession vote failed (Randolph among the ayes, McFarland and Johnson among the nays). Randolph's brother Thomas Jefferson Randolph was one of the Albemarle County delegates. A special delegation, composed of G.W. Randolph,
William B. Preston and
Alexander H.H. Stuart, traveled to
Washington, D.C. where they met newly inaugurated
President Abraham Lincoln on April 12, 1861, the same day that South Carolina artillery militia fired at
Fort Sumter. Finding the President firm in his resolve to hold the Federal forts in the South, the three men returned to Richmond on April 15. His defenses anticipated Union General George McClellan's campaign of the following spring. He was officially mustered out on December 18, 1864. Confederate President
Jefferson Davis appointed Randolph as
Secretary of War on March 18, 1862, and he took office on March 24, 1862. Randolph helped reform the department, improving procurement and writing a conscription law similar to one he had created for Virginia. He strengthened the Confederacy's western and southern defenses, but came into conflict with Jefferson Davis. He also was involved in a controversy over the use of hidden shells, which Union troops found upon capturing Yorktown; Randolph argued the explosive devices contravened the laws of civilized warfare but were acceptable if left on a parapet of a fort to prevent its capture or allow defenders to retreat more safely. With weakening health due to
tuberculosis (TB), he resigned on November 17, 1862. However, Randolph did accept election as Richmond's state senator, and served in the
Virginia Senate during the remainder of the conflict. ==Post-Civil War==