AFP Copyright: AFP Boris Johnson said the government will "pause this legislation" over Brexit Image caption: Boris Johnson said the government will "pause this legislation" over Brexit

It was a game of two halves for the government in its bid to pass Boris Johnson's Brexit bill into law.

Here's a brief recap of what happened:

MPs held two key votes on the government's new Withdrawal Agreement Bill (WAB) after a day of debate.

No 10 won the first - MPs backed Mr Johnson's Withdrawal Agreement Bill, by a majority of 30.

However, just minutes later No 10 lost a second vote - MPs rejected Boris Johnson's three-day timetable to get the bill through the Commons, by a majority of 14.

In response, the PM said the government would "pause this legislation" and "accelerate" preparations for a no-deal Brexit.

After the vote, European Council President Donald Tusk said he would recommend EU leaders back an extension to the 31 October Brexit deadline.

And what to expect next:

All eyes turn to Europe, with the 27 other EU leaders to decide whether to grant an extension to Article 50 and, if so, how long that extension should be.

A No 10 source has told BBC News that if they agree an extension until 31 January - as the UK requested last week - then Downing Street would seek a general election.

MPs will now return to discussing the contents of the Queen's Speech on Wednesday and Thursday, Leader of the Commons Jacob Rees-Mogg said.

We are going to bring our live coverage to an end here - but our main news story will be updated with any further developments.

Find out how your MP voted on the Brexit bill by using our search box here.