At the time of confederation of the former British colonies of Canada (now Ontario and Quebec), New Brunswick and Nova Scotia, the radical Liberals were marginalized by the more pragmatic Conservative coalition assembled under Sir John A. Macdonald. In the 29 years after Canadian confederation, the Liberals were consigned to opposition, with the exception of one stint in government. Alexander Mackenzie was the de facto leader of the Official Opposition after Confederation and finally agreed to become the first official leader of the Liberal Party in 1873. He was able to lead the party to power for the first time in 1873, after the MacDonald government lost a vote of no confidence in the House of Commons due to the Pacific Scandal. Mackenzie subsequently won the 1874 election, and served as Prime Minister for an additional four years. During the five years the Liberal government brought in many reforms, which include the replacement of open voting by secret ballot, confining elections to one day and the creation of the Supreme Court of Canada, the Royal Military College of Canada, and the Office of the Auditor General. However the party was only able to build a solid support base in Ontario, and in 1878 lost the government to MacDonald. The Liberals would spend the next 18 years in opposition.