British Prime Minister Boris Johnson suffered a major defeat in Parliament on Tuesday night as rebellious lawmakers voted to seize control of the Brexit agenda. The prime minister immediately said he would call for a new general election.

The 328 to 301 vote cleared the way for Johnson's opponents to introduce a bill Wednesday that would prevent Britain from leaving the European Union without a deal October 31.

The cross-party rebels are determined to prevent a "no-deal" Brexit because of fears it would gravely damage the economy, and the vote came hours after Johnson suffered key defections from his party, losing a working majority in Parliament.

Get Breaking News Delivered to Your Inbox

On a day of high drama and acerbic debate in the House of Commons, lawmakers returned from their summer recess to confront Johnson over his insistence that the U.K. leave the European Union on October 31, even without a withdrawal agreement to cushion the economic blow. Many shouted, "Resign!"

In total 21 Tory members of Parliament — including a number of ex-cabinet ministers — joined opposition parties to defeat the government, BBC News reports.

A new general election would take Britain's future directly to the people for a third general election in four years.

A Pro-EU protester waves an EU flag in front of a Brexit Now banner on Sept. 3, 2019, in London, England. Getty

Earlier Tuesday, two other prominent Conservatives signaled their intention not to seek re-election rather than bend to Johnson's will. Former Cabinet minister Justine Greening and former Foreign Office Minister Alistair Burt also signaled their intention to stand down.

Jeremy Corbyn, leader of the main opposition Labour Party, lambasted the weakened Johnson and accused him of "riding roughshod" over the constitution in order to crash Britain out of the EU without a deal.

"He isn't winning friends in Europe. He's losing friends at home. His is a government with no mandate, no morals and, as of today, no majority," Corbyn said.