The origins of and effects of the political leanings of the two cities are intertwined with and as old as the rivalry itself. When the CPR shifted its route southward, Canada was governed by the Conservatives who had generously supported the railway – this helped entrench a loyalty to the Tories in Calgary that persisted even during the early days of Confederation when most of Western Canada was solidly Liberal. However, when the Liberals gained power they championed not one but two more transcontinental railways, both of which passed through Edmonton. The result was boom times and massive immigration in and around Edmonton, which quickly displaced Calgary as Alberta's largest city and became solidly Liberal. It is widely believed that as a direct result of these leanings, the Liberal government in Ottawa designated Edmonton the provincial capital in 1905.