Theresa May has said she will quit as Conservative leader on 7 June, paving the way for a contest to decide a new prime minister.
In an emotional statement, she said she had done her best to deliver Brexit and it was a matter of “deep regret” that she had been unable to do so.
Mrs May said she would continue to serve as PM while a Conservative leadership contest takes place.
The party said it hoped a new leader could be in place by the end of July.
It means Mrs May will still be prime minister when US President Donald Trump makes his state visit to the UK at the start of June.
Mrs May announced she would step down as Tory leader on 7 June and had agreed with the chairman of Tory backbenchers that a leadership contest should begin the following week.
On Friday, Foreign Secretary Jeremy Hunt became the latest MP to say that he would run for the party leadership, joining Boris Johnson, Esther McVey and Rory Stewart, who had already confirmed their intentions. More than a dozen others are believed to be seriously considering entering the contest.
In her statement, Mrs May said she had done “everything I can” to convince MPs to support the withdrawal deal she had negotiated with the European Union but it was now in the “best interests of the country for a new prime minister to lead that effort”.
She added that, in order to deliver Brexit, her successor would have to build agreement in Parliament.
“Such a consensus can only be reached if those on all sides of the debate are willing to compromise,” she said.
6 yearsbefore that, as home secretary
Failed to win 2017 general election outright, but stayed PM
Remainvoter in the 2016 EU referendum
Brexit dominated her time at 10 Downing Street
Mrs May’s voice shook as she ended her speech saying: “I will shortly leave the job that it has been the honour of my life to hold.
“The second female prime minister, but certainly not the last.
“I do so with no ill will, but with enormous and enduring gratitude to have had the opportunity to serve the country I love.”
The prime minister had faced a backlash from her MPs after announcing her latest Brexit plan earlier this week, which included concessions aimed at attracting cross-party support.
In a statement, the Conservative Party said the likely timetable for the party leadership contest was that nominations would close during the week beginning 10 June, with the process of whittling down candidates to the final two to conclude by the end of the month.
Those names would then be put to a vote of party members before the end of July.
Former foreign secretary Boris Johnson, who is seen as the front-runner to succeed Mrs May, told an economic conference in Switzerland on Friday: “We will leave the EU on October 31, deal or no deal.”
He said a new leader would have “the opportunity to do things differently”.
“The way to get a good deal is to prepare for a no deal,” he added.
Labour Leader Jeremy Corbyn said Mrs May had been “right to resign” and that the Conservative Party was now “disintegrating”.
A series of Conservative MPs praised Mrs May following her statement.
Foreign Secretary Jeremy Hunt said she was a “true public servant”:
Chief whip Julian Smith praised her commitment to the country as “outstanding”:
And Chancellor Philip Hammond said it had been a “privilege” to serve alongside her:
Mrs May’s predecessor, David Cameron – who resigned as PM after campaigning for Remain and losing the referendum – said she should be thanked for her “tireless efforts”.
He added: “I know how painful it is to accept that your time is up and a new leader is required.
“She has made the right decision – and I hope that the spirit of compromise is continued.”
German Chancellor Angela Merkel said she had always worked well with Mrs May adding: “Britain’s departure from the European Union is a major transition and regardless of what happens now in Britain, the German government will do everything to achieve a good partnership, an orderly exit and good co-operation and I hope that will remain the case in the future.”
Scotland’s First Minister Nicola Sturgeon wished Mrs May well despite “profound disagreements” but added: “The prospect of an even more hardline Brexiteer now becoming PM and threatening a no-deal exit is deeply concerning.
“Added to the experience of the past three years, this makes it all the more important that Scotland is given the choice of becoming an independent country.”
Democratic Unionist Party Leader Arlene Foster, whose party supported Mrs May’s government in power after the Conservatives lost their majority in the 2017 election, praised Mrs May’s “dutiful approach on national issues”.
Lib Dem leader Sir Vince Cable said it was Mrs May’s compromises with the right-wing of her party were to blame, adding: “The best and only option remains to take Brexit back to the people. I believe the public would now choose to stop Brexit.”
But Brexit Party Leader Nigel Farage said two Conservative leaders whose “instincts were pro-EU” had now gone and the party either “learns that lesson, or it dies”.
Following her emotional coda to her statement on the steps of Downing Street, expect the tributes to Theresa May to flood in, even from those pushing her from office.
Her resilience. Her determination. Her sense of duty.
Ultimately, though, her premiership fell apart in an attempt to bring people together.
Her Brexit deal stymied by too many of her own MPs, she tried to reach out across the Commons.
But in proposing a vote on a referendum – even though she expected MPs to reject another public vote – she over-reached.
Some members of her cabinet who are manoeuvring to replace her withdrew their consent from her latest plan, effectively throwing out its compromises and her leadership.
She pointed today to some of her achievements in office but frankly she has had to announce the timetable for her departure before securing the legacy she desired – leaving the EU with a deal.
In a hung parliament, the question now is whether the next Conservative leader will be able to succeed where she failed.
Or whether something more radical will be required: no deal, a new referendum, or a general election.
More on May