Anderson moved to
Sidney, Iowa, in 1866 and resumed the practice of law. He served as assessor of internal revenue from 1868 to 1871. He was a delegate to the
Republican National Convention at
Philadelphia in 1872. He served as
district attorney from 1876 to 1880. and state railroad commissioner for a single term beginning in 1881. In 1882, he was the Republican Party's nominee for election to the
Forty-eighth Congress in
Iowa's 9th congressional district, but was defeated by Democrat
William Henry Mills Pusey. Two years later, Anderson was not the Republican nominee, but he was credited with causing the nomination of "
dark horse" candidate
Joseph Lyman, who then defeated Pusey in the general election. In April 1886,
Fremont County, where Anderson lived, was added to the
Iowa's 8th congressional district, which Republican
William Peters Hepburn had represented since 1881. Anderson immediately ran for Hepburn's seat. Refusing to heed the Republican district convention's endorsement of Hepburn, he ran in the general election as an "
Independent Republican." While remaining a Republican, he ran hard on a platform of stricter regulation of the railroads, and the use of tariffs for revenue only, that earned him the joint endorsement of the
Democratic and
Greenback parties. Anderson served in the
Fiftieth Congress, voting with the Democratic caucus for
John G. Carlisle as its choice for
Speaker of the House but sitting with the Republicans. Hepburn waited several years before attempting to regain his seat. However, a different winner of the Republican endorsement process,
James Patton Flick, defeated Anderson in the next general election. In all, Anderson served in Congress from March 4, 1887, to March 3, 1889. One of the last votes Anderson cast in Congress was on the
Enabling Act of 1889, which set in motion the admission into the union of
North Dakota,
South Dakota,
Montana, and
Washington. In 1892, after leaving Congress, Anderson moved to
Hot Springs in
Fall River County, South Dakota, where he continued to practice law. He served as mayor of Hot Springs in 1895 and 1896, and was elected
State attorney of Fall River County on November 8, 1898. Anderson died at Hot Springs on November 17, 1898. He was interred in Sidney Cemetery. ==References==