Britain's departure from the European Union was set in law Wednesday, amid emotional scenes, as the bloc's parliament voted to ratify the divorce papers.
After half a century of sometimes awkward membership and three years of tense withdrawal talks, the UK will leave the EU at midnight Brussels time (2300 GMT) on Friday.
MEPs voted by 621 votes to 49 to pass the withdrawal agreement, which sees Britain leave the EU institutions but remain under most EU rules during a transition until the end of the year.
Following the vote, MEPs burst into a chorus of "Auld Lang Syne", a traditional Scottish song of farewell.
The transition will see Prime Minister Boris Johnson's government try to negotiate an ambitious free trade agreement with his 27 former partners remaining in the bloc.
"Only in the agony of parting do we look into the depth of love," EU Commission president Ursula von der Leyen told the chamber, quoting British author George Eliot.
"We will always love you and we will never be far. Long live Europe."
In the Brussels parliament, many MEPs made it clear that they were voting for the withdrawal deal not out of any support for Brexit, but to avoid the disruption of a chaotic no deal divorce.
Some expressed real anguish and regret, and pointed to Britain's role not only in the development of the European unification project but also to its historic battles against tyranny on the continent.
"If we could stop Brexit by voting 'no' today I would be the first to recommend it," former Belgian premier and chairman of the parliament's Brexit steering group Guy Verhofstadt said.
The day began with Britain's permanent representative to the EU Tim Barrow -- from Saturday to be its ambassador -- handing back the withdrawal agreement signed by Johnson, to be stored in Brussels.
Leaving the church
It was an emotional day in the chamber, steeped in a mixture of nostalgia, political carnival and historical metaphor.
Nigel Farage, veteran MEP and leader of Britain's Brexit Party, was in triumphant mood after two decades as a thorn in Brussels' side.
After his final speech in parliament, in which he described Brexit as a victory for populism over "globalism", Farage and his MEPs brandished British flags, in contravention of the rules, then left before returning to vote.
Earlier, Farage said he had loved playing the "pantomime villain" in the Strasbourg assembly, feeding opposition to Europe at home with theatrical YouTube clips.
But he insisted on the seriousness of Brexit, comparing its significance to king Henry VIII taking Britain out of the Catholic church in 1534.
"He took us out of the Church of Rome, and we are leaving the Treaty of Rome," he said, referring to the EU's 1957 founding document.
The historic vote to incorporate the withdrawal agreement into EU law was the last legislative act of the 73 remaining British MEPs, and departure was hard for some.
Iratxe Garcia Perez, the Spanish leader of the Socialist group, choked back tears as she said farewell to her British Labour Party comrades.
After Brexit the United Kingdom will be what the EU calls a "third country", outside the union, but the political and economic drama will continue.
Britain and Europe will apply EU rules on trade and free movement of citizens until the end of the year, while negotiating a free trade agreement.
In the face of scepticism in EU capitals, Johnson -- who will make an address to the nation at 10:00 pm London time on Friday -- insists he is optimistic that a comprehensive free trade deal can be done before the next cliff-edge.
In an online question and answer on Wednesday Johnson said he would be celebrating on Friday, but in a "dignified" way.
"It is a great moment for our country, it is a moment of hope and opportunity but it is also, I think, a moment for us to come together in a spirit of confidence," he said.
But negotiations between the world's sixth biggest economy and a 27-nation single market with a population of 450 million will be tricky.
Fishing rights, residency and working rights for citizens, tariff free trade, access to Europe for Britain's huge services sector: all will be on the table.
"We are considering a free trade agreement with zero tariffs and zero quotas. This would be unique. No other free trade agreement offers such access to our single market," von der Leyen said.
"But the pre-condition is that European and British businesses continue to compete on a level playing field. We will not expose our companies to unfair competition," she warned, to applause.
UK goes solo
Johnson's government hopes more trade with the United States and Asian powers can help offset the costs of Brexit.
But the British premier was facing difficult talks on Thursday with President Donald Trump's secretary of state Mike Pompeo.
Trump backed Brexit, but Washington opposed Johnson's decision to allow Chinese telecoms giant to work on Britain's 5G telecoms network despite security fears.
(Except for the headline, this story has not been edited by NDTV staff and is published from a syndicated feed.)