While still serving as an educator, Ainlay first sought public office in the
1930 Edmonton election, when he ran for alderman on
Edmonton City Council and was defeated, finishing ninth of twelve candidates. He was successful in the
1931 election, when he finished second of fifteen candidates and was elected to a two-year term. He was re-elected in the
1933 election (finishing third of seventeen candidates), but was defeated in the
1935 election. Once out of office, Ainlay made his first bid for mayor in the
1936 election, finishing third of five candidates as incumbent
Joseph Clarke was re-elected. He made two subsequent unsuccessful attempts to return to aldermanic office (in the
1937 and
1938 elections) before taking three years off from municipal politics. His 1947 win was notable because it marked the first election in which the mayor was elected to a two-year term. As mayor, Ainlay introduced
daylight saving time in the city after city residents voted in a 1946 plebiscite in favour of the change and after the
Government of Alberta refused to bring it in province-wide. Government offices in Edmonton abided by the city's DST, although the government opposed the time change. The next session of the
Legislative Assembly of Alberta passed legislation outlawing the use of daylight saving time in Alberta, and Edmonton returned to standard time until Alberta adopted DLT following a successful
vote held concurrently with the
1971 Alberta general election. Harry Ainlay did not seek re-election in the
1949 election, due to health issues arising from a serious fall he had sustained working on his retirement home in BC. == Provincial and federal politics ==