This article is the Electoral history of William Lyon Mackenzie King, the tenth Prime Minister of Canada. A Liberal, he was Canada's longest-serving Prime Minister, with three separate terms as Prime Minister (1921–1926, 1926–1930 and 1935–1948), for a total of 21 years and 154 days. He defeated Prime Ministers Arthur Meighen and R.B. Bennett at different times, and was succeeded by Prime Minister Louis St. Laurent in 1948. King was elected to the House of Commons of Canada twelve times (1908, 1909, 1919, 1921, 1922, 1926 (twice), 1930, 1935, 1940, and 1945). He was elected leader of the Liberal Party of Canada in 1919, by the first leadership convention for a federal party in Canada. Summary King was the longest-serving Prime Minister, in office for a total of 21 years, 154 days. He led the Liberal Party of Canada in seven consecutive general elections, winning six times (1921, 1925, 1926, 1935, 1940, 1945) and losing once (1930). He won minority governments three times (1925, 1926 1945) and majority governments three times (1921, 1935, and 1940). He is in a three-way tie with Sir John A. Macdonald and Sir Wilfrid Laurier for the number of general elections he contested as leader of a party. His unbroken term in office from October 23, 1935 to November 14, 1948 (just over thirteen years) is the second-longest unbroken term, coming after Laurier's unbroken term in office of over fifteen years (July 11, 1896 to October 6, 1911) and just ahead of Macdonald's longest unbroken term of just under thirteen years (October 17, 1878 to June 6, 1891). King was the third of four prime ministers to serve non-consecutive terms, the others being Macdonald, Meighen, and Pierre Trudeau. King was the fourth of five prime ministers from Ontario, the others being Sir John A. Macdonald, Alexander Mackenzie, Sir Mackenzie Bowell, and Lester Pearson. King stood for election to the House of Commons of Canada sixteen times, in ten general elections and six by-elections. He was elected twelve times and defeated four times. Three of the by-elections were ministerial by-elections, triggered by King entering the federal Cabinet, once as Minister of Labour (1909) and twice as Prime Minister (1922, 1926). Two of the by-elections were in response to his defeats in his own constituency in general elections, which compelled him to seek election to a safe seat to re-enter the Commons. One by-election was after his