Ayers served as attorney of
Fergus County, Montana from 1905 to 1909, and Judge of the Tenth Judicial District of Montana from 1913 to 1921. He was the Justice of the
State supreme court from January 1922 until his resignation on November 22, 1922, defeating
Republican Congressman
Scott Leavitt. He was re-elected over Republican nominee Stanley Felt in
1934 in a landslide. Rather than seek re-election to a third term, Ayers opted to run for governor in
1936, and narrowly defeated incumbent governor
Elmer Holt in the Democratic primary. In the general election, he barely defeated former
Lieutenant Governor of Montana Frank Hazelbaker, the Republican nominee. During his administration, he oversaw the expansion of the state bureaucracy, signed a bill to give the governor new powers in directing state government, the state deficit was eliminated, and state bond interests were lowered. When he ran for re-election in
1940, he only won the Democratic primary with a thin plurality, and was defeated in the general election by
Sam C. Ford, a former
Montana Supreme Court Associate Justice. He ran in the Democratic primary to challenge Ford in
1944, but came in third behind
Leif Erickson and Austin B. Middleton. He was a delegate to the
Democratic National Conventions in 1920 and 1940, and to every State Democratic Convention from 1906 to 1940. ==Death==