The United Kingdom has officially exited the European Union, bringing to an end almost half a century as a member of the group.
Britain has ended almost half a century of European Union membership, making a historic exit after years of bitter arguments to chart its own uncertain path in the world.
There were celebrations and tears across the country as the EU's often reluctant member became the first to leave an organisation set up to forge unity among nations after the horrors of World War II.
Thousands of people waving Union Jack flags packed London's Parliament Square to mark the moment of Brexit at 11pm UK time - midnight in Brussels.
"We did it!" declared Nigel Farage, the former member of the European Parliament who has campaigned for Brexit for years, before the crowd began singing the national anthem.
It was a largely good-natured gathering, aside from one Brexit supporter who earlier set an EU flag alight.
But Brexit has exposed deep divisions in British society, and many fear the consequences of ending 47 years of ties with their nearest neighbours.
Some pro-Europeans, including many of the 3.6 million EU citizens who made their lives in Britain, marked the occasion with solemn candlelit vigils.
Brexit has also provoked soul-searching in the EU about its own future after losing 66 million people, a global diplomatic big-hitter and the clout of the City of London financial centre.
'Not an end, a beginning'
In an address to the nation, Prime Minister Boris Johnson - a figurehead in the seismic 2016 referendum vote for Brexit - acknowledged there might be "bumps in the road ahead".
But he said Britain could make it a "stunning success".
As he held a private party in his Downing Street office, a clock projected on the walls outside counted down the minutes until Brexit.
Mr Johnson has promised to unite the island nation in a new era of prosperity, predicting a "new era of friendly cooperation" with the EU while Britain takes a greater role on the world stage.
"The most important thing to say tonight is that this is not an end but a beginning," he said in a televised address.
EU institutions earlier began removing red, white and blue Union flags in Brussels ahead of a divorce that German Chancellor Angela Merkel called a "sea-change" for the bloc.
French President Emmanuel Macron described it as a "historic warning sign" that should force the EU and its remaining nations of more than 440 million people to stop and reflect.
Britain's departure was sealed in an emotional vote in the EU parliament this week that ended with MEPs singing "Auld Lang Syne", a traditional Scottish song of farewell.
Almost nothing will change straight away, because of an 11-month transition period negotiated as part of the exit deal.
Britons will be able to work in and trade freely with EU nations until 31 December, and vice versa, although the UK will no longer be represented in the bloc's institutions.
But legally, Britain is out.
And while the divorce terms have been agreed, Britain must still strike a deal on future relations with the EU, its largest trading partner.
Both will set out their negotiating positions Monday.
"We want to have the best possible relationship with the United Kingdom, but it will never be as good as membership," European Commission president Ursula von der Leyen said in Brussels.
'Goodbye & good luck'
Getting this far has been a traumatic process.
Britain resisted many EU projects over the years, refusing to join the single currency or the Schengen open travel area, and eurosceptics have long complained about Brussels bureaucracy.
Worries about mass migration added further fuel to the Brexit campaign while for some, the 2016 vote was a chance to punish the government for years of cuts to public spending.
But the result was still a huge shock.
It unleashed political chaos, sparking years of toxic arguments that paralysed parliament and forced the resignations of prime ministers David Cameron and Theresa May.
Mr Johnson brought an end to the turmoil a decisive election victory in December which gave him the parliamentary majority he needed to ratify his Brexit deal.
But Britons remain as divided as they were nearly four years ago, when 52 per cent voted to leave and 48 per cent voted to remain in the EU.
"Rise and shine... It's a glorious new Britain" said the Brexit-supporting Daily Express.
In Scotland, where a majority voted to stay in 2016, Brexit has revived calls for independence and there were protests Friday outside parliament.
And in a sign of potential constitutional trouble ahead First Minister Nicola Sturgeon tweeted: "Scotland will return to the heart of Europe as an independent country - #LeaveALightOnForScotland."
In Northern Ireland, where there are fears Brexit could destabilise a hard-won peace after decades of conflict over British rule, a billboard read: "This island rejects Brexit."
Irish foreign minister Simon Coveney tweeted: "Goodbye & good luck."
'Glad it's over'
Mr Johnson, who remains a polarising figure accused of glossing over the complexity of leaving the EU, has avoided any big official celebrations that might exacerbate divisions.
He hosted a special cabinet meeting in the northeastern city of Sunderland, which was the first to declare for Brexit in 2016, but did not appear in public.
Downing Street and several government buildings were lit up in colours of the British flag on Friday night, while millions of commemorative 50 pence coins have also been issued.
It was a different story in nearby Parliament Square, where the moment of Brexit was met with cheers, the lighting of flares and balloons let off into the night sky.
"What happens now marks the point of no return. Once we have left, we are never, ever going back," Mr Farage told the crowd of cheering supporters.
At a "Big Brexit Bash" in Morley, northern England, Raymond Stott described the four years since the referendum as "a right cock-up".
"I am just glad it's all over. We will look after ourselves. We don't need Europe," said the 66-year-old.
But for many pro-Europeans, Friday marks a day they hoped would never come.
"Today is a day of mourning," said Katrina Graham, 31, an Irish women's rights activist who lives in Brussels, at a protest in central London.
Trade talks loom
From Saturday, Britain will be free to strike trade deals around the world, including with the US.
Mr Johnson has given himself just 11 months to negotiate a new partnership with the EU, covering everything from trade to security cooperation - despite warnings this is not enough time.
He also discussed with his ministers on Friday an aim to get 80 percent of Britain's commerce covered by free trade agreements within three years, a spokesman said.
US President Donald Trump is an enthusiastic supporter of Brexit, and one of his top envoys on Friday hailed an "exciting new era".
"We will continue building upon our strong, productive, and prosperous relationship with the UK as they enter this next chapter," Secretary of State Mike Pompeo said.