Updated at 2:48 p.m. ET

British Prime Minister Theresa May said Wednesday that she will resign if Parliament will pass her Brexit deal, which has already been defeated twice.

"I have heard very clearly the mood of the parliamentary party," May said, according to Reuters. "I know there is a desire for a new approach and new leadership in the second phase of the Brexit negotiations and I won't stand in the way of that."

Members of May's own Conservative party had urged her to promise to step aside in exchange for their votes for her deal. She announced her willingness to step down at a meeting of Conservative lawmakers.

"I am prepared to leave this job earlier than I intended in order to do what is right for our country and our party," May told the Tories, according to a meeting transcript released by her office.

She did not set a specific date for her departure. The resignation would clear the way for a different Conservative leader to steer through the next phases of the U.K.'s divorce from the European Union. May has survived two no-confidence votes in Parliament, most recently in January.

The government hopes the prime minister's offer will encourage more lawmakers to vote in favor of May's deal when it is presented again. The plan is for that to happen on Friday, but it is not clear if the speaker of Parliament will allow it to be brought forward for a third time.

The country has been in political chaos since June 2016, when it passed a referendum to leave the EU. Britain's Parliament has been unable to approve any plan for leaving the bloc, and has been stymied by details such as how to manage the border between the independent Republic of Ireland and Northern Ireland, which is part of the U.K., once Britain leaves the European customs union.

Last week, EU officials granted May a short extension to come up with a Brexit plan. If May can get Parliament to accept the terms she has worked out with the bloc, Britain has until May 22 to leave. But if Parliament does not approve her deal, the country has only until April 12 to figure out what to do – significantly increasing the odds of a "no-deal" Brexit, which many believe would be disastrous for the U.K.

Copyright 2019 NPR. To see more, visit https://www.npr.org.