This article is the Electoral history of Alexander Mackenzie, the second Prime Minister of Canada. A Liberal, he served one term as Prime Minister (1873 - 1878). He became Prime Minister after defeating the government of Sir John A. Macdonald on a non-confidence motion in 1873 and then winning the general election of 1874. He later lost the general election of 1878 and Macdonald returned to power. Prior to the creation of Canada in 1867, Mackenzie served in the Legislative Assembly of the Province of Canada, being elected in two general elections. While a Member of Parliament in the Canadian House of Commons, he also served one term in the Legislative Assembly of Ontario, a practice of dual membership which was permitted at that time. He served as Treasurer of Ontario Dec 1871 - Oct 1872. Summary Mackenzie ranks thirteenth out of twenty-three prime ministers for time in office, with one term in office (1873-1878). He was in office for a total of 4 years and 336 days. He led the Liberal Party in two general elections, winning one (1874) and losing one (1878). Mackenzie was the second of five prime ministers from Ontario, the others being Macdonald, Mackenzie Bowell, William Lyon Mackenzie King, and Lester B. Pearson. Mackenzie stood for election to the House of Commons of Canada eight times, in 1867, 1872, 1873, 1874, 1878, 1882, 1887 and 1891, including one ministerial by-election on becoming Prime Minister in 1873. He was undefeated at the constituency level throughout his parliamentary career. Mackenzie represented two different ridings in Ontario during his time in Parliament: Lambton and York East, Ontario. He served in the House of Commons for a total of 24 years, 6 months and 29 days, continuously from the first Parliament, elected in 1867, until his death in 1892. Federal general elections, 1874 and 1878 Mackenzie led the Liberal Party in two general elections, winning one (1874) and losing one (1878). Federal Election, 1874 Prime Minister Mackenzie formed his government in late 1873, after the fall of the Macdonald government in late 1873. Mackenzie called the general election in early 1874. He won a majority and was confirmed in office. Macdonald retained the support of the Conservatives and became the Leader of the Opposition. 1 Prime Minister when election was called; Prime Minister after the election. 2 Leader of the Opposition when election was called; Leader of the Opposition