Third and fourth majorities, 1878–1887
Part of the National Policy was implemented in the budget presented in February 1879. Under that budget, Canada became a high-tariff nation like the United States and Germany. The tariffs were designed to protect and build Canadian industry – finished textiles received a tariff of 34%, but the machinery to make them entered Canada free. Macdonald continued to fight for higher tariffs for the remainder of his life.
In January 1879, Macdonald commissioned politician Nicholas Flood Davin to write a report regarding the industrial boarding-school system in the United States. Now known as the Davin Report, the Report on Industrial Schools for Indians and Half-Breeds was submitted to Ottawa on 14 March 1879, providing the basis for the Canadian Indian residential school system. It made the case for a cooperative approach between the Canadian government and the church to implement the "aggressive assimilation" pursued by President of the United States, Ulysses S. Grant. In 1883, Parliament approved $43,000 for three industrial schools and the first, Battleford Industrial School, opened on 1 December of that year. By 1900, there were 61 schools in operation. In 2015, the Truth and Reconciliation Commission concluded that the assimilation amounted to cultural genocide.
By the 1880s, Macdonald was becoming frailer, but he maintained his political acuity. In 1883, he secured the "Intoxicating Liquors Bill" which took the regulation system away from the provinces, in part to stymie his foe Premier Mowat. In his own case, Macdonald took better control of his drinking and binges had ended. "The great drinking-bouts, the gargantuan insobrieties of his middle years, were dwindling away now into memories." As the budget moved forward, Macdonald found that the railway was progressing well: although little money had been spent on the project under Mackenzie, several hundred miles of track had been built and nearly the entire route surveyed. In 1880, Macdonald found a syndicate, led by George Stephen, willing to undertake the CPR project. Donald Smith (later Lord Strathcona) was a major partner in the syndicate, but because of the ill will between him and the Conservatives, Smith's participation was initially not made public, though it was well-known to Macdonald. In 1880, the Dominion took over Britain's remaining Arctic territories, which extended Canada to its present-day boundaries, with the exception of Newfoundland, which did not enter Confederation until 1949. Also in 1880, Canada sent its first diplomatic representative abroad, Sir Alexander Galt as High Commissioner to Britain. With good economic times, Macdonald and the Conservatives were returned with a slightly decreased majority in 1882. Macdonald was returned for the Ontario riding of Carleton.
The transcontinental railroad project was heavily subsidised by the government. The CPR was granted 25,000,000 acres (100,000 km2; 39,000 sq mi) of land along the route of the railroad, and $25 million from the government. In addition, the government had to spend $32 million on the construction of other railways to support the CPR. The entire project was extremely costly, especially for a nation with only 4.1 million people in 1881. Between 1880 and 1885, as the railway was slowly built, the CPR repeatedly came close to financial ruin. The terrain in the Rocky Mountains was difficult and the route north of Lake Superior proved treacherous, as tracks and engines sank into the muskeg. When Canadian guarantees of the CPR's bonds failed to make them salable in a declining economy, Macdonald obtained a loan to the corporation from the Treasury – the bill authorizing it passed the Senate just before the firm would have become insolvent.
The Northwest again saw unrest. Many of the Manitoban Métis had moved into the territories and negotiations between the Métis and the Government to settle grievances over land rights proved difficult. Riel, who had lived in exile in the United States since 1870, journeyed to Regina with the connivance of Macdonald's government, who believed he would prove a leader they could deal with. Instead, the Métis rose the following year under Riel in the North-West Rebellion. Macdonald put down the rebellion with Canadian troops who were transported by rail, and Riel was captured, tried for treason, convicted, and hanged. Macdonald refused to consider reprieving Riel, who was of uncertain mental health. The hanging of Riel was controversial, and alienated many Quebecers from the Conservatives and they were, like Riel, Catholic and culturally French Canadian; they soon realigned with the Liberals. Following the North-West Rebellion of 1885, Macdonald's government implemented restrictions upon the movement of indigenous groups, requiring them to receive formal permission from an Indian Department Official in order to go off-reserve. The federal government under Macdonald sought to keep the indigenous ill-fed and dependent on government food supplies, a policy which has been blamed for many deaths.
Also in 1885, there was a smallpox epidemic in Montreal, and the Macdonald government imposed compulsory vaccination on the Mohawk people living in the nearby Kahnawake reserve, so that there were few cases on the reserve.
The CPR was almost bankrupt, but Canada's decision to deploy troops in response to the crisis showed that the railway was helpful to maintain the territory's status as part of the British Empire, and the British Parliament provided money for its completion. On 7 November 1885, CPR manager William Van Horne wired Macdonald from Craigellachie, British Columbia, that the last spike had been driven, completing the railway. That same year, the Macdonald government enacted the Chinese Immigration Act, 1885. Macdonald told the House of Commons that, if the Chinese were not excluded from Canada, "the Aryan character of the future of British America should be destroyed". In the summer of 1886, Macdonald travelled by rail to western Canada. On 13 August 1886, Macdonald used a silver hammer and pounded a gold spike to complete the Esquimalt and Nanaimo Railway.
In 1886, another dispute arose over fishing rights with the United States. Americans fishermen had been using treaty provisions allowing them to land in Canada to take on wood and water as a cover for clandestine inshore fishing. Several vessels were detained in Canadian ports, to the outrage of Americans, who demanded their release. Macdonald sought to pass a Fisheries Act which would override some of the treaty provisions, to the dismay of the British, who were still responsible for external relations. The British government instructed the governor general, Lord Lansdowne, to reserve the bill for royal assent, effectively placing it on hold without vetoing it. After considerable discussion, the British government allowed royal assent at the end of 1886, and indicated it would send a warship to protect the fisheries if no agreement was reached with the Americans.