As Britain awoke to Donald Trump becoming the next President of the United States of America, the world was reacting with shock and disbelief.
Celebrities and world leaders were united in expressing feelings of uncertainty for the future.
Gerard Araud, the French ambassador to Washington and a social media institution, tweeted his dismay at a collapsing world order, then appeared to delete his tweet.
"Après Brexit et cette élection, tout est désormais possible. Un monde s'effondre devant nos yeux. Un vertige," he wrote, which translates as "After Brexit and this election, anything is now possible. A world is collapsing before our eyes. Dizziness" in English.
Among a string of famous names to take to Twitter was British comic James Corden, who wrote that he was experiencing "Brexit feelings".
Singer Cher wrote that the "world will never be the same" in the event of a Trump victory, adding: "Sad for the young. Will never be more than the toilet."
Lady Gaga called for hope, writing: "Say a prayer America."
Another Brit, Lily Allen, tweeted that neighbouring Canada had "better build a wall".
Family Guy creator Seth MacFarlane tweeted: "I truly cannot visualize the rambling, incoherent creature I saw at the debates now addressing the nation from the Oval Office."
Actress Jessica Chastain wrote: "The positive element from all this is that we can no longer pretend that we are free of racism & sexism. The question is, what do we do now?"
Miley Cyrus said that she will accept a president Trump in a tearful video posted on Twitter. The singer pleaded: "Please just treat people with love, and treat people with compassion, and treat people with respect, and I will do the same for you."
Ex-American Idol winner Kelly Clarkson said: "I have never been more nervous/scared in my life."
Others posted so-called "memes" mocking Mr Trump's election victory. One featured a picture of George W Bush, the former president:
Another recalled how The Simpsons cartoon show predicted a Trump presidency 16 years ago:
And another mocked up an image of Mount Rushmore:
Despite the groundswell of negative reaction from around the world, there was also plenty of support for Trump's victory...
And some people were happy to celebrate smaller wins...
Here's some more of the social media reaction from around the world...
Front pages when the result became clear
The Daily Telegraph
The Sun
Liberation (France)
Journal de Quebec (Canada)
The Sydney Daily Telegraph (Australia)
Las Ultimas Noticias (Chile)
The Observer (Jamaica)
The Independent Digital (UK)
Daily Mirror (UK)
The Guardian (UK)
The Times (UK)
Financial Times (UK)
The Star (UK)
Metro (UK)
New York Post (US)
Daily News (US)
Le Figaro (France)
New York Times (US)
Herald Sun (Australia)
Washington Post (US)
The Wall Street Journal (US)
Tampa Bay Times (US)
NZ Herald (New Zealand)
El Pais (Spain)
Newsweek (US weekly)
How the media looked as the votes were being counted
United States
The Washington Post
United Kingdom
The Daily Telegraph
The Times
The Guardian
Financial Times
i
The Daily Mirror
Irish Independent (Northern Ireland)
Around the world
Wall Street Journal (Europe edition)
Wall Street Journal (Asia Edition)
Le Figaro (France)
Shanghai Daily (China)
Daily Telegraph (Australia)
Herald Sun (Australia)
The Courier Mail (Australia)
NT News (Australia)
The Advertiser (Australia)
NZ Herald (New Zealand)
The Hindu (India)
Bangkok Post and The Nation (Thailand)
The Star (Malaysia)
How world leaders reacted
Russian President Vladimir Putin was one of few world leaders to congratulate Donald Trump.
In a telegram to the president-elect he said he hopes to work with Mr Trump on international issues, and said he believed a "constructive dialogue" between the US and Russia will serve the interests of both countries.
"Putin expressed hope for joint work to restore Russian-American relations from their state of crisis, and also to address pressing international issues and search for effective responses to challenges concerning global security," the Kremlin said in a statement.
Prime Minister Theresa May has issued this statement: “I would like to congratulate Donald Trump on being elected the next President of the United States, following a hard-fought campaign.
“Britain and the United States have an enduring and special relationship based on the values of freedom, democracy and enterprise.
“We are, and will remain, strong and close partners on trade, security and defence.
“I look forward to working with President-elect Donald Trump, building on these ties to ensure the security and prosperity of our nations in the years ahead.”
Nigel Farage, the leader of Ukip, was quick off the mark too. He described the result as "bigger than Brexit".
He told The Telegraph that Mr Trump's election will represent a "massive result" for Britain.
He said that the UK would have a "friend in the White House" who will prioritise trade relations with the UK.
The justice minister, Heiko Maas, tweeted "The world won't end, but it will get crazier".
In Australia, Malcolm Turnbull has congratulated president-elect Donald Trump and reassured Australians that ties with the United States are "profound, strong and enduring."
The Australian prime minister said that he has every confidence Australia-US engagement will be as strong as ever.
"Americans understand that they have no stronger ally, no better friend, than Australia," Mr Turnbull said shortly after Mr Trump's acceptance speech.
And finally...
The creator of comedy cartoon The Simpsons has described the results of the US presidential elections as "beyond satire" after the show predicted Donald Trump's win 16 years ago.
Matt Groening, 62, told The Guardian that Mr Trump's presidency would provide more scope for comic material as it would be "amazing in all its horror".
In 2000, an episode of the popular American cartoon featured an animated version of Trump announcing his candidacy.
The famous episode about a grown-up Lisa Simpson's own rise to the White House alluded to the fictional Trump's previous presidency and how it sent the American economy plummeting.
Groening, from Portland in Oregon, said: "We predicted that he would be president back in 2000 - but (Trump) was of course the most absurd placeholder joke name that we could think of at the time, and that's still true. It's beyond satire."
Speaking before the election results came in on Wednesday morning, he said he "highly doubted" that Mr Trump would win America's top job.
But, he told the newspaper: "(If he gets elected) I think we'll suddenly be very inspired. Mr Trump's election, as horrible as it would be, would be great for comedy.
"One of the things that occurs to me is the sober writing of political history is impossible for this election.
"When historians are writing about this election, after all of the other presidents, it's the worst. Just quoting from it would be like a clown show."
First broadcast in 1990, the show is now in its 28th season and is created by Groening, James L. Brooks and Sam Simon.