who was just returning to action after a wound suffered at Williamsburg two months earlier. His regiment became a part of the Second Corps under command of Lt. Gen. Thomas Jackson. During the Maryland Campaign Walker was acting as brigade commander for the wounded Isaac Trimble; but he was wounded himself at the Battle of Antietam. At the Battle of Fredericksburg he acted as brigade commander for Jubal Early. General Jackson, on his deathbed after being shot by friendly fire at the Battle of Chancellorsville, requested that Walker be given command of the Stonewall Brigade, which Jackson had formed and led first. Walker was promoted to brigadier general and assigned to the Stonewall Brigade in May 1863. He led it during the Gettysburg Campaign, where the brigade participated in the attacks on Culp's Hill. For his actions Walker was given the nickname "Stonewall Jim" by his troops. He was badly wounded at the Battle of Spotsylvania Court House in 1864 and sent home to recuperate. After the death of Brig. Gen. John Pegram during the Petersburg Campaign, Walker was assigned command of the division. He led it until the surrender at Appomattox. Postwar career When the war ended in 1865, Walker returned to his law practice and political career, being elected as a Democrat to the House of Delegates of Virginia in 1871 and 1872. VMI granted him an honorary degree in 1872 in recognition of his Civil War service. Five years later, he was elected the 13th Lieutenant Governor of Virginia, serving from 1878 to 1882 under Governor Frederick W.M. Holliday. In 1890, Walker was a charter member of The Virginia Bar Association. In 1893, Walker switched allegiances and joined the Republican Party. He was elected to the Fifty-fourth and Fifty-fifth Congresses, serving from 1895 until 1899. During his second term, Walker served as chairman of the Committee on Elections. In 1898, Walker was defeated for re-election by William F. Rhea. In the subsequent contest of that election, a shootout occurred at a deposition, and Walker was wounded. In 1900, Walker ran again against Rhea and lost. Walker's contest of the 1900 election was abated by his death in 1901. Death and legacy Walker died in Wytheville, Virginia on October 21, 1901; and was buried in the town's East End Cemetery. He was the great-grandfather of M. Caldwell Butler. See also List of American politicians who switched parties in