With the admission of British Columbia to Canada on July 20, 1871, Canada agreed to build a transcontinental railroad. Construction of the railroad began in 1875, with Kicking Horse Pass chosen, over the more northerly Yellowhead Pass, as the route through the Canadian Rockies. Ten years later, on November 7, 1885, the last spike was driven in Craigellachie, British Columbia.