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.