Donald Trump will be the 45th president of the United States of America and political figures around the world have reacted with a mixture of praise and dread.
Trump's win has the ability to change the course of international relations. During his campaign he repeatedly criticised trade and immigration, which much of the time formed the crux of his arguments.
He has openly confessed his admiration for Russian president Vladimir Putin, implied that climate change is a scaremongering tactic and he notoriously wants to build a 1,900 mile wall on the Mexican border.
But in his victory speech, Trump said: "While we will always put America's interests first, we will deal fairly with everyone."
And this is how political figures from around the globe reacted:
Prime minister Theresa May, who was careful during the campaign not to express a preference for either candidate, shared a measured response. She congratulated the president-elect and stated the UK and US "will remain strong and close partners".
President Vladimir Putin sent Trump a telegram of congratulation on winning the presidential election. In a brief statement, the Kremlin said: "Hope to work together for removing Russian-American relations from their crisis state."
"It's DEFCON 2," said Mexican analyst Alejandro Hope. "Probably something as close to a national emergency as Mexico has faced in many decades. A massive deportation campaign could really put some stress on Mexican border communities. A renegotiation of NAFTA (North American Free Trade Agreement) could seriously hobble the Mexican economy. It could create a lot of uncertainty. Financial markets could suffer."
German chancellor Angela Merkel offered Trump "close co-operation" on the basis of shared trans-Atlantic values that she says include respect for human dignity regardless of people's origin, gender or religion.
Foreign minister Jean-Marc Ayrault expressed concern about Trump and said: "We don't want a world where egoism triumphs." France's Socialist government had openly endorsed Hillary Clinton.
However, far-right leader Marine Le Pen welcomed Trump, claiming he champions a new world.
She congratulated the "free" American people. Le Pen, who will be running for the French presidency next year, has long said that Trump's policies were in French interests.
Justice minister Bekir Bozdag said the change of presidency will not make a big difference to "deep-rooted" relations between the two countries. He told the state-run Anadolu Agency: "In essence our relations are relations between two states and we hope that under the new presidential term the Turkish-US relations will be much better."
He also said: "I saw an intense campaign for Hillary Clinton's victory. Artists, sportsmen, all personalities worked for Clinton's victory. But in elections, it is important to embrace the people. No one has won elections through newspaper headlines, opinion polls or television (campaigns)."
Populist Dutch anti-Islam legislator Geert Wilders tweeted his congratulations to Trump. Wilders, whose Freedom Party is riding high in opinion polls ahead of Dutch elections in March, called Trump's win: "A historic victory! A revolution."
Looking ahead to the Dutch vote, he finished his tweet: "We also will give our country back to the people of the Netherlands."
Hungary's prime minister Viktor Orban, said Trump's victory is "great news" and shows "democracy is still alive".
Orban, who returned to power in 2010 and last year built fences on Hungary's southern borders to stop the flow of migrants heading towards western Europe, said in July that Trump's immigration policies made him the best candidate for Hungary and Europe.
Indian prime minister Narendra Modi congratulated Trump on twitter this morning.
Spokesman for the Ministry of Foreign Affairs in China, Lu Kang said, "We hope to strive together with the new U.S. administration to advance the continued healthy and stable development of Sino-American relations, to the benefit of the two countries and the world."
The European Union
Foreign policy chief Federica Mogherini said transatlantic ties go beyond the election of Trump. She said in a twitter message that "EU-US ties are deeper than any change in politics. We'll continue to work together, rediscovering the strength of Europe."
EU Parliament president Martin Schulz said the result "must be respected" as Trump "managed to become the standard-bearer of the angst and fears of millions of Americans".
And British MPs took to Twitter to share their opinions. From Jeremy Corbyn to Nigel Farage this is what they had to say:
It's certainly a mixed bag.