Theresa May has told Conservative MPs she will not lead the party into the next general election.

The promise came after the Prime Minister vowed to fight “with everything I’ve got” to retain her place as Tory leader as she faced an attempt to oust her through a confidence vote.

Mrs May looked set to see off the challenge to her leadership, as scores of Tory MPs made public statements of support.

Brexit
Conservative MPs in a meeting addressed by Theresa May in Committee Room 14 of the Houses of Parliament (Stefan Rousseau/PA)

And she received an enthusiastic welcome as she addressed Conservative MPs at the backbench 1922 Committee moments before the crucial vote began at 6pm, with backers banging their desks to show their support.

Afterwards, solicitor general Robert Buckland told reporters: “She said ‘In my heart I would like to lead the party into the next election’ and then that was the introductory phrase to her indication that she would accept the fact that that would not happen, that is not her intention.”

And Cabinet minister Amber Rudd said: “She was very clear that she won’t be taking the general election in 2022.”

Other MPs indicated that Mrs May had promised to find a “legally binding solution” to ensuring that the UK does not get permanently trapped in a backstop arrangement to keep the Irish border open after Brexit.

Anger over the backstop among Tory backbenchers and their Democratic Unionist Party allies was the main obstacle to Mrs May getting her Brexit deal through the House of Commons earlier this week.

Her decision to defer the vote sparked a new wave of letters of no confidence which pushed the total beyond the threshold of 48 needed to trigger a ballot.

As Tory MPs voted in a Westminster committee room, Croydon South MP Chris Philp said: “I attended the 1922 Committee this evening. The Prime Minister pledged to find a legally binding solution to the danger of getting stuck in a permanent backstop. She also said she would not lead us into the next election. We now need to unite around Theresa May to deliver Brexit.”

But DUP leader Arlene Foster, who met Mrs May shortly before the vote, insisted that “tinkering around the edges” of the Prime Minister’s EU Withdrawal Agreement would not be enough to win her party’s support for the deal.

Mrs Foster, whose 10 MPs prop up the minority Conservative administration, said she told the PM that “we were not seeking assurances or promises, we wanted fundamental legal text changes”.

(PA Graphics)

Brexiteer Jacob Rees-Mogg said he was not persuaded by the Prime Minister’s assurances to vote for her in the ballot.

He told the Press Association: “It was all the same old stuff. Nothing has changed.”

Mrs May was informed that she would face a ballot by the chairman of the 1922 Committee, Sir Graham Brady, in a phone call at 10.35pm on Tuesday.

She had just returned to 10 Downing Street from a day of travels which had taken her to The Hague, Berlin and Brussels for Brexit talks with EU leaders.

As day broke in Westminster on Wednesday, Sir Graham issued a press release announcing that the threshold had been reached and a confidence vote would be held later that day.

Brexit
Press release issued by the 1922 Committee confirming that a confidence vote would take place (PA Wire/PA Images)

In a dramatic early morning statement outside the door to 10 Downing Street, Mrs May responded: “I will contest that vote with everything I’ve got.”

Warning that a change of prime minister would put the UK’s future at risk and could delay or halt Brexit, she insisted she would stay on to “finish the job”.

Mrs May said securing a Brexit deal which will deliver on the result of the 2016 referendum was “now within our grasp” and said she was “making progress” in securing reassurances from EU leaders on MPs’ concerns about the proposed backstop for the Irish border.

Every MP in her Cabinet swiftly issued statements of support and she was greeted by loud cheers from the Tory backbenches when she faced the House of Commons for her weekly session of Prime Minister’s Questions.

Prime Minister’s Questions
Theresa May speaks during Prime Minister’s Questions hours after being told she faces a confidence vote (Mark Duffy/House of Commons/PA)

By early afternoon, the number of Conservative MPs saying publicly that they would vote for her had passed the 159 required for her to survive the attempt to oust her.

The target for victory, representing half of the parliamentary party plus one, increased from 158 during the day, as the Conservative whip was restored to Burton MP Andrew Griffiths and Dover MP Charlie Elphicke.

Mr Griffiths, a former chief of staff to Mrs May who had been suspended over suggestive text messages, immediately confirmed he would back the PM.

However, uncertainty remained over whether public statements would translate into votes in the secret ballot taking place in a Commons committee room between 6pm and 8pm.

Downing Street aides declined to discuss whether the PM would stay on if she won by only a slender margin.

Prime ministers with shortest time in office since 1900
(PA Graphics)

Failure in the ballot would trigger a leadership contest in which Mrs May could not stand.

But if she wins, another challenge cannot be mounted against her position as Tory leader for a year.

Husband Philip showed his support by watching Prime Minister’s Questions from the public gallery, while Tory elder statesman Kenneth Clarke told MPs that a leadership contest would be “irresponsible and unhelpful”.

None of the PM’s Brexit-backing critics took the opportunity to attack her, while there were strong words of support from backbenchers including Neil O’Brien (Harborough), who condemned “headbangers from all sides” for undermining her.

But she faced a call to stand down from the Scottish National Party’s leader in Westminster, Ian Blackford, who said: “This Government is a farce, the Tory Party is in chaos and the Prime Minister is a disgrace… Prime Minister, take responsibility, do the right thing, resign.”

Mrs May cleared the decks to lobby Tory MPs for their backing, cancelling a planned meeting of Cabinet and a trip to Dublin for talks with Irish premier Leo Varadkar.