The Liberal Party was well behind in the polls just months ago. That's before Carney replaced Justin Trudeau as leader and US President Donald Trump soured relations with Canada, becoming the defining issue of the campaign.
So did Trump just win the election for Carney - and what does it mean for future negotiations?
Niall Paterson speaks to Sky's economics and data editor Ed Conway and Professor Drew Fagan, from the University of Toronto, who worked in the Canadian government for more than a decade.
Producer: Natalie Ktena
Editor: Philly Beaumont