Media captionMay: MPs 'need to face up to the consequences of their decisions'

MPs will vote on Thursday on delaying Brexit after they rejected the idea of leaving the EU without a deal.

In a night of high drama in the Commons, MPs surprised the government and voted by 312 to 308 to reject a no-deal Brexit under any circumstances.

The vote is not binding - under current law the UK could still leave without a deal on 29 March.

On Thursday, MPs will vote on whether to ask the EU for permission to delay the date for departure.

There could be a short extension - or a much longer one - depending on whether MPs backed the prime minister's existing withdrawal deal that has been agreed with the EU by 20 March, the government says.

That means Theresa May could make a third attempt to get her deal through Parliament in the next few days.

In a series of votes on no-deal Brexit, the Commons first voted by a margin of four to reject no deal outright.

Then, in another vote, they reinforced that decision by 321 to 278, a majority of 43.

That vote was on a motion which said the UK should not leave the EU without a deal specifically on 29 March, but with the option of a no-deal Brexit at any other time. It had originally been the government's motion.

Please upgrade your browser to view this interactive

How did my MP vote on 13 March?

Enter a postcode, or the name or constituency of your MP

Seat vacant

The government wanted to keep control of the Brexit process, and keep no-deal on the table, so they ordered Conservative MPs to vote against it.

That tactic failed. Government ministers defied those orders and there were claims Theresa May had lost control of her party.

Image copyrightUK ParliamentImage caption
Sarah Newton has quit the government after defying the whips

Thirteen government ministers - including Work and Pensions Secretary Amber Rudd, Business Secretary Greg Clark, Justice Secretary David Gauke and Scottish Secretary David Mundell - defied the government whips by abstaining in the vote.

Work and pensions minister Sarah Newton voted against the orders of the whips and has now resigned.

Mr Mundell said he backed the PM's deal and had always made clear his opposition to a no-deal Brexit.

In a crisis there can be opportunity.

This is now a crisis - the rules that traditionally have preserved governments are out of the window.

The prime minister has been defeated again. Her authority - if not all gone - is in shreds.

But for Number 10 there's an opportunity too, because MPs will soon be presented with a new choice - back the PM's deal, which has already been defeated twice, or accept the chance of a delay to Brexit.

This isn't the choice of a government that's in control. But the tactic is to make the best of chaos.