Brexit deal: What just happened?
Here's what's happening.
A Brexit deal has been agreed. Does that mean it's all done?
No.
Any deal needs to be approved by the UK Parliament and across the EU. The last time this happened, UK PM Theresa May failed to get her deal approved three times before resigning.
The new PM, Boris Johnson, has geared his entire leadership around getting Brexit done by 31 October.
But he still faces the same battle to get a divided parliament to agree to his deal.
And to make matters more complicated, he needs to get it done on Saturday to avoid a third Brexit extension.
Boris Johnson says he has struck "a great new deal" to accomplish Brexit - but still faces an uphill struggle.
If that sounds familiar, it's because we've been here before.
Leaving the EU is not as simple as it sounds. There are trade deals, travel restrictions, citizens' rights and more to think about.
So a "divorce agreement" was drawn up after a year and a half of negotiations.
But it was rejected three times in the UK Parliament.
The main sticking point was
the Irish border between the UK and EU after Brexit.
The UK and EU agreed a "backstop" - a guarantee there would be no return to a hard border with checks, police, or soldiers - because of decades of violence in Northern Ireland in the past.
But the "backstop" could mean a customs border "in the sea" between Britain and Northern Ireland - something many in the UK saw as dividing the country.
https://www.bbc.com/news/world-europe-50084450