British Prime Minister Boris Johnson braced for another showdown in parliament on Wednesday after a humiliating defeat over his Brexit strategy, with MPs set to vote on a law aimed at blocking a no-deal departure.

Johnson has said he will seek an early general election if MPs vote against him again, intensifying a dramatic political crisis ahead of his October 31 Brexit deadline.

Johnson has vowed to take Britain out of the EU whether or not a divorce deal with Brussels is in place, more than three years after the referendum vote to leave the European Union.

But his opponents warn that Brexit without a deal will have disastrous economic consequences and must be avoided.

In a sign of the government’s determination, finance minister Sajid Javid will also on Wednesday unveil another £2 billion (2.2 billion euros, $2.4 billion) of funding to deal with Brexit, including for new port infrastructure.

But Johnson’s Conservative government is in disarray.

It lost its working majority in parliament on Tuesday after one of its MPs switched to the anti-Brexit Liberal Democrats and, a few hours later, it expelled 21 MPs from the party for voting against the government.

The Conservative rebels supported an opposition motion temporarily allowing parliament to decide what legislation is put up for a vote, a power traditionally held by the government.

“Humiliation for Johnson as Tory rebels turn against him,” read the front page of the left-wing Guardian newspaper, while The Independent wrote: “Johnson loses control”.

The rebels included Conservative Party grandees such as Ken Clarke, the longest-serving member of parliament, and Nicholas Soames, Winston Churchill’s grandson.

They joined with opposition lawmakers to deal Johnson his first defeat since he took over from Theresa May in July.

Wednesday’s momentous day begins with Johnson rallying his troops at a cabinet meeting before heading off to parliament to face his first weekly question and answer session with MPs.

Johnson’s opponents then hope to pass legislation forcing him to seek a Brexit extension until January 31 if no new divorce terms emerge from an October 17-18 EU summit.

Urgently pressed for time, MPs would like to vote through the Brexit delay bill in all three required readings by Wednesday evening, before passing it on to the upper House of Lords for final approval.

Johnson argued on Tuesday that the proposed legislation would undermine his discussions with Brussels on a new divorce deal and would cause “more dither, more delay and more confusion”.

The government has pencilled in an election for October 15 should parliament vote to delay Brexit on Wednesday.

“I don’t want an election but if MPs vote tomorrow to stop the negotiations and to compel another pointless delay of Brexit, potentially for years, then that will be the only way to resolve this,” Johnson said on Tuesday.

Aides have previously said that any poll would be held before a crucial EU summit on October 17 and 18.

Under British election law, a parliamentary majority of two-thirds is required to hold an early election meaning that the main opposition Labour Party must support it.

Labour leader Jeremy Corbyn on Tuesday said he was in favour of an election but only once the legislation was passed “in order to take no deal off the table”.

The decision on whether or not to extend the October 31 deadline has to be taken by all 28 EU leaders unanimously.

Johnson caused widespread anger among parliamentarians last week with his decision to drastically reduce the number of days MPs will be able to meet before the Brexit deadline in what was seen as a move to try to curb his opponents.

A judge is due to issue a ruling on the decision later on Wednesday in one of three ongoing legal challenges.