A pivotal day in Brusselspublished at 23:37 British Summer Time 17 October 2019
A pivotal day in Brussels then - here's a recap of what happened.
The EU and UK reached a new withdrawal agreement, which has been hailed by European leaders as a significant step. But the deal still has to get past Parliament.
The deal ditches former PM Theresa May's backstop, the measure designed to prevent a return to physical checks on the Irish border. Instead it will, in effect, draw a new customs border down the Irish Sea.
Boris Johnson is insisting he is confident that MPs will back the deal when MPs sit on Saturday, even though his key allies, Northern Ireland's Democratic Unionist Party, plan to vote against it. Labour, the Liberal Democrats and the SNP also say they are opposed.
We are going to bring our live coverage to an end here - but our news story will continue to be updated with the latest developments.
And you can read about the revised deal in this piece from the BBC Reality check team.