The completion of Canada's first transcontinental railway with the driving of the Last Spike at Craigellachie, British Columbia, on November 7, 1885, is an important milestone in Canadian history. Between 1881 and 1885, the Canadian Pacific Railway (CPR) completed a line that spanned from the port of Montreal to the Pacific coast, fulfilling a condition of British Columbia's 1871 entry into the Canadian Confederation. The City of Vancouver, incorporated in 1886, was designated the western terminus of the line. The CPR became the first transcontinental railway company in North America in 1889 after its International Railway of Maine opened, connecting CPR to the Atlantic coast.