Walter Smith Cox was a professor of law at what was then called Columbian University, known today as The George Washington University, in Washington, D.C.. On February 26, 1879, Cox was nominated by President Rutherford B. Hayes to a new seat on the United States District Court for the District of Columbia created by 20 Stat. 320. He was confirmed by the United States Senate on March 1, 1879, and received his commission the same day. During his service, he presided over the trial of Charles J. Guiteau, the assassin of President James A. Garfield. Cox retired from the federal bench on July
1880 Republican National Convention agenda to visitors. Garfield enlisted the support of the other candidates from the convention to help with the campaign. The 1880 Democratic National Convention chose Winfield Scott Hancock as the presidential candidate and William Hayden English as his vice-presidential running mate. The election featured a very close popular vote that put Garfield ahead with a majority of less than 10,000; some sources put the margin as low as 2,000. However, Garfield won the election with 214 of the 369 electoral votes in the country. On July 2, 1881, Garfield was shot by a former Chicago lawyer named Charles J. Guiteau