Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

LONDON — Theresa May narrowly survived another bid to oust her as prime minister on Wednesday — the second attempt in five weeks — leaving Britain with a leader but without a plan as it barrels toward a March 29 deadline to leave the European Union.

Lawmakers rejected the no-confidence motion in May's government, 325 to 306, just a day after her divorce proposal suffered the biggest parliamentary defeat of any prime minister in British history.

The twin votes leave the U.K. in its deepest political crisis in half a century as it grapples with how to exit the E.U.

May's ruling Conservatives have 317 of the 650 seats in the House of Commons, meaning it needed the support of the Democratic Unionists, a small Northern Ireland party that has propped up her government, in the vote on Wednesday.

Moments after the razor-thin win, May pledged to bring fellow lawmakers on board to, once and for all, find an European exit plan.

"We have a responsibility to identify a way forward that can secure the backing of the House," she told Parliament.

"I have proposed a series of meetings between senior parliamentarians and representatives of the government over the coming days," May said.

Trade Secretary Liam Fox mocked the Labour Party, saying the no-confidence vote could have passed if opposition leader Jeremy Corbyn were more popular.

"I’m delighted, but not surprised" by May's win, Fox said.

But the deputy leader of the opposition said May's survival doesn't mean she's ready to lead the United Kingdom out of its Brexit quagmire,

"There is great pity for the prime minister in the country," Labour Deputy Leader Tom Watson said after the vote. "I don’t think she has the acumen to get us out of this crisis."

The no-confidence vote on May's government was different from a no-confidence vote she faced on Dec. 12, when Conservative colleagues challenged her role as party leader. She also survived that vote.

The latest challenge to May's authority had been put forward by the opposition leader Corbyn, whose goal is to trigger a general election that might bring his left-wing Labour Party to power.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

Just before May's narrow escape, Corbyn told lawmakers she was incapable of leading the nation.

“If a government cannot get its legislation through Parliament, it must go to the country for a new mandate,” Corbyn said. “There can be no doubt that this is indeed a zombie government.”

More than one-third of Conservatives voted against her divorce proposal on Tuesday. And while that defeat was widely expected, the scale of the rout — 432-202 — was not.

After her deal was rejected, May was faced with cobbling together a plan B for Brexit by next week.

The prime minister has repeatedly said that the proposal Parliament rejected was the only one on the table. The E.U. has also insisted it is not willing to renegotiate.

During a question-and-answer session in Parliament before Wednesday's vote, May said she wanted to listen to lawmakers to find out what type of deal would get enough support to pass.

British Prime Minister Theresa May speaking during a question-and-answer session in Parliament in London on Wednesday. Parliamentary Recording Unit / AFP - Getty Images

"We are living through an historic moment in our nation's history following the referendum that divided our nation in half," May added. "We dearly need to bring our country back together."

Opponents of Brexit said they hoped May would view her political misfortunes as a sign that the U.K. should rethink its desired European divorce.

"We have consistently said there is no such thing as a good Brexit," said Ian Blackford, parliamentary leader of the Scottish National Party.

"The prime minister has to recognize the differences throughout the United Kingdom. Scotland voted to remain. We will work constructively to find a solution to this and we will do that provided the prime minister is prepared to do the same."

If Parliament can’t agree on a divorce plan, the U.K. will face a “no-deal” scenario that would see Britain crash out of the 28-member bloc without a trade agreement, something most experts say would have a catastrophic consequences.

Shortages of food and medicine, civil unrest, chaos at ports and airports have all been forecast as possibilities under a "no-deal" Brexit. There are also concerns for what Brexit means for the border between Northern Ireland, which is part of the U.K., and the Irish Republic, which is a separate country and will remain part of the E.U.

The border is currently more or less invisible and there are no checkpoints. Some fear the reinstatement of a physical boundary risks a return to "The Troubles," rekindling tensions that might spill over into violence. A 1998 peace deal ended decades of conflict.

Labour has demanded that May take a hard E.U. divorce off the table.

But May's spokesman offered no guarantee against a punishing "no-deal" scenario.

"The prime minister has been very clear that the British public voted to leave the European Union," the spokesman said. "We want to leave with a deal, but she is determined to deliver on the verdict of the British public, and that is to leave the E.U. on March 29 this year."

With no clear majority in Parliament for any single alternative on Brexit, there's a growing chance that Britain may seek to postpone its departure date while politicians work on a new plan — or even hand the decision back to voters in a new referendum on Britain's E.U. membership.

Pro-E.U. lawmaker Dominic Grieve introduced a bill Wednesday that aims to lay the groundwork for a second referendum, which he called "the only way out of the current crisis."

Leading Brexit campaigner Nigel Farage told broadcaster Sky News Wednesday that he thought Britain would most likely be forced to delay the scheduled date for Brexit and that another referendum on the issue might be necessary to break the gridlock in Parliament.

"I think and I fear that we are headed on a path towards delay and probably, yes, a second vote," said Farage, who is a former leader of the pro-Brexit U.K. Independence Party.

European leaders appeared to be preparing for the worst.

German Chancellor Angela Merkel said Wednesday that, while she could not envision a renegotiation of the divorce deal, she would not rule out further clarifying Britain’s future ties with the bloc.

French President Emmanuel Macron was more blunt, telling Britons to “figure it out yourselves."