Answer
In total, Macdonald served 19 years as Canada's prime minister. He was instrumental in shaping the country's early political and economic development. Macdonald's leadership played a crucial role in the Confederation of Canada in 1867 and the expansion of the Dominion. His policies contributed to the construction of the Canadian Pacific Railway and the establishment of a national identity for Canada.