 Subsequently, Lastman defeated Hall in the 1997 Toronto municipal election to become the first elected mayor of the megacity.However, Canadian municipal governments are legal creations of the provincial governments and local referendums have little to no legal effect.The Harris government thus had the power to ignore the results of the referendum and went ahead with the amalgamation.