Williams was a friend of William Jennings Bryan. Because of their friendship, Bryan made a whistle-stop visit to Carmi in 1896 to give a presidential campaign speech.
In 1902, the Chicago Chronicle said he was being groomed for president. "Bob Williams for President" headlined the Chicago Evening Post on November 9, 1903. In 1903, Illinois Democrats nominated Williams for the United States Senate. He did not win but received a letter from Williams Jennings Bryan, who expressed an interest in talking with him about plans for 1904. In 1904, his name was presented to the National Convention at St. Louis, Missouri, as a candidate for vice-president. Williams came in second place for the Democratic vice presidential nomination.
In 1904, Williams was defeated in his bid for reelection by Pleasant T. Chapman. After his term in the House of Representatives, he resumed the practice of his profession. He died in Loma Linda, California on November 8, 1923. He was interred in Maple Ridge Cemetery, Carmi, Illinois.