Theresa May became prime minister in 2016 with one overriding goal: to lead Britain out of the European Union.

Three years on, the U.K. is still in the EU, and May's time in 10 Downing St. is ending. She announced Friday that she will step down as Conservative leader on June 7, remaining as caretaker prime minister during a party leadership contest to choose her successor.

More Images
FILE - In this Wednesday, July 13, 2016 file photo New British Prime Minister Theresa May and her husband Philip May stand on the steps of 10 Downing Street in London. Theresa May says she'll quit as UK Conservative leader on June 7, sparking contest for Britain's next prime minister. (AP PhotoKirsty Wigglesworth, File)

Theresa May became prime minister in 2016 with one overriding goal: to lead Britain out of the European Union.

FLE - In this Monday May 29, 2017 file photo Britain's Prime Minister Theresa May, left is interviewed by broadcaster Jeremy Paxman, during a general election broadcast, in London. Theresa May says she'll quit as UK Conservative leader on June 7, sparking contest for Britain's next prime minister. (Stefan Rousseau Pool Photo via AP, File)

The daughter of a rural Anglican vicar, May attended Oxford University and worked in financial services before being elected to Parliament in 1997.

FILE - In this Thursday, May 25, 2017 file photo U.S. President Donald Trump touches the back of British Prime Minister Theresa May during a working dinner meeting at the NATO headquarters during a NATO summit of heads of state and government in Brussels. Theresa May says she'll quit as UK Conservative leader on June 7, sparking contest for Britain's next prime minister. (AP PhotoMatt Dunham, File)

But she soon established a reputation for solid competence and a knack for vanquishing flashier rivals.

FILE - In this Tuesday March 28, 2017 file photo Britain's Prime Minister Theresa May, sitting below a painting of Britain's first Prime Minister Robert Walpole, signs the official letter to European Council President Donald Tusk, in 10 Downing Street, London, invoking Article 50 of the bloc's key treaty, the formal start of exit negotiations. Theresa May says she'll quit as UK Conservative leader on June 7, sparking contest for Britain's next prime minister. (Christopher FurlongPool Photo via AP, File)

In her first speech as prime minister in July 2016, May sketched out plans for an ambitious policy agenda. She spoke of giving the poor a helping hand and lifting barriers to social mobility.

FILE - In this Friday Sept. 22, 2017 file photo British Prime Minister Theresa May delivers her speech, in Florence, Italy. (AP PhotoAlessandra Tarantino, Pool, File)

Attempting to win the support of Conservative Brexiteers suspicious of her past pro-EU leanings, May set out firm red lines in negotiations with the EU: Britain would leave the bloc's single market and customs union and end the right of EU citizens to live and work in the U.K.

FILE - In this Tuesday, Sept. 26, 2017 file photo European Council President Donald Tusk meets British Prime Minister Theresa May at 10 Downing Street in London.(AP PhotoFrank Augstein, File)

The move backfired. May ran a lackluster campaign on a platform that included plans to cut benefits to pensioners and change the way they pay for long-term care — quickly dubbed a "dementia tax." The Conservatives lost their majority, and May had to strike a deal with 10 lawmakers from Northern Ireland's Democratic Unionist Party to stay in power.

FILE - In this Friday, Sept. 29, 2017 file photo British Prime Minister Theresa May waits for the start of a working session at an EU Digital Summit in Tallinn, Estonia. (AP PhotoVirginia Mayo, File)

All that remained was for the British and European Parliaments to ratify it. And that is where May's best-laid plans came undone.

FILE - In this Friday, Oct. 20, 2017 file photo British Prime Minister Theresa May waits for the arrival of European Council President Donald Tusk prior to a bilateral meeting with European Council President Donald Tusk during an EU summit in Brussels. (AP PhotoGeert Vanden Wijngaert, Pool)

"Geoffrey Boycott stuck to it and he got the runs in the end," she said.

FILE - In this Friday, Dec. 8, 2017 file photo, from left, Britain's Secretary of State for Exiting the European Union David Davis, Britain's Prime Minister Theresa May, European Commission President Jean-Claude Juncker and European Union's chief Brexit negotiator Michel Barnier meet at the European Commission in Brussels. (Eric Vidal, Pool Photo via AP, File)

By this time, a growing number of Conservatives had concluded that May was the problem and would have to leave before Brexit could be sorted out.

FILE - In this Thursday Jan. 18, 2018 file photo Britain's Prime Minister Theresa May and French President Emmanuel Macron during a media conference at the Royal Military Academy Sandhurst, in Camberley, England, after UK-France summit talks. (Stefan RousseauPool via AP)

FILE - In this Thursday Jan. 18, 2018 file photo Britain's Prime Minister Theresa May and French President Emmanuel Macron during a media conference at the Royal Military Academy Sandhurst, in Camberley, England, after UK-France summit talks. (Stefan RousseauPool via AP)

FILE - In this Friday, Feb. 16, 2018 file photo British Prime Minister Theresa May speaks behind the red light of a camera during a press conference with German Chancellor Angela Merkel, right, after a meeting in the chancellery in Berlin, Germany. (AP PhotoMarkus Schreiber, File)

FILE - In this Friday, Feb. 16, 2018 file photo British Prime Minister Theresa May speaks behind the red light of a camera during a press conference with German Chancellor Angela Merkel, right, after a meeting in the chancellery in Berlin, Germany. (AP PhotoMarkus Schreiber, File)

FILE - In this Monday, April 23, 2018 file photo a pigeon takes off as Britain's Prime Minister Theresa May arrives to attend a Memorial Service to commemorate the 25th anniversary of the murder of black teenager Stephen Lawrence at St Martin-in-the-Fields church in London. (AP PhotoMatt Dunham, File)

FILE - In this Monday, April 23, 2018 file photo a pigeon takes off as Britain's Prime Minister Theresa May arrives to attend a Memorial Service to commemorate the 25th anniversary of the murder of black teenager Stephen Lawrence at St Martin-in-the-Fields church in London. (AP PhotoMatt Dunham, File)

FILE - In this Thursday, May 17, 2018 file photo German Chancellor Angela Merkel, right, speaks with French President Emmanuel Macron, left, and British Prime Minister Theresa May after meeting at a hotel on the sidelines of the EU-Western Balkans summit in Sofia, Bulgaria. (AP PhotoDarko Vojinovic, File)

FILE - In this Thursday, May 17, 2018 file photo German Chancellor Angela Merkel, right, speaks with French President Emmanuel Macron, left, and British Prime Minister Theresa May after meeting at a hotel on the sidelines of the EU-Western Balkans summit in Sofia, Bulgaria. (AP PhotoDarko Vojinovic, File)

FILE - In this Friday, July 13, 2018 file photo U.S. President Donald Trump, left, listens to British Prime Minister Theresa May, right, speak during their meeting at Chequers, in Buckinghamshire, England. (AP PhotoPablo Martinez Monsivais, File)

FILE - In this Friday, July 13, 2018 file photo U.S. President Donald Trump, left, listens to British Prime Minister Theresa May, right, speak during their meeting at Chequers, in Buckinghamshire, England. (AP PhotoPablo Martinez Monsivais, File)

FILE - In this Wednesday, Oct. 3 , 2018 file photo Conservative Party Leader and Prime Minister Theresa May dances as she arrives on stage to address delegates during a speech at the Conservative Party Conference at the ICC, in Birmingham, England. (AP PhotoRui Vieira, File)

FILE - In this Wednesday, Oct. 3 , 2018 file photo Conservative Party Leader and Prime Minister Theresa May dances as she arrives on stage to address delegates during a speech at the Conservative Party Conference at the ICC, in Birmingham, England. (AP PhotoRui Vieira, File)

FILE - In this Nov. 14, 2018 file photo Britain's Prime Minister Theresa May announces that her Cabinet has agreed to a draft Brexit deal with the European Union after "impassioned" debate, outside 10 Downing Street in London. (AP PhotoMatt Dunham, File)

FILE - In this Nov. 14, 2018 file photo Britain's Prime Minister Theresa May announces that her Cabinet has agreed to a draft Brexit deal with the European Union after "impassioned" debate, outside 10 Downing Street in London. (AP PhotoMatt Dunham, File)

FILE - In this Thursday, Nov. 15, 2018 file photo Britain's Prime Minister Theresa May reacts during a press conference inside 10 Downing Street in London. (AP PhotoMatt Dunham, Pool)

FILE - In this Thursday, Nov. 15, 2018 file photo Britain's Prime Minister Theresa May reacts during a press conference inside 10 Downing Street in London. (AP PhotoMatt Dunham, Pool)

FILE - In this Thursday, Dec. 13, 2018 file photo British Prime Minister Theresa May, center, arrives for a round table meeting at an EU summit in Brussels. (AP PhotoAlastair Grant, File)

FILE - In this Thursday, Dec. 13, 2018 file photo British Prime Minister Theresa May, center, arrives for a round table meeting at an EU summit in Brussels. (AP PhotoAlastair Grant, File)

She will be remembered as the latest in a long line of Conservative leaders destroyed by the party's divisions over Europe, and as a prime minister who failed in her primary mission. But history may also see her as a leader who faced a devilishly difficult situation with stubborn determination.

FILE - In this Wednesday, July 13, 2016 file photo New British Prime Minister Theresa May and her husband Philip May stand on the steps of 10 Downing Street in London. Theresa May says she'll quit as UK Conservative leader on June 7, sparking contest for Britain's next prime minister. (AP PhotoKirsty Wigglesworth, File)

FILE - In this Wednesday, July 13, 2016 file photo New British Prime Minister Theresa May and her husband Philip May stand on the steps of 10 Downing Street in London. Theresa May says she'll quit as UK Conservative leader on June 7, sparking contest for Britain's next prime minister. (AP PhotoKirsty Wigglesworth, File)

The daughter of a rural Anglican vicar, May attended Oxford University and worked in financial services before being elected to Parliament in 1997.

She was quiet and diligent, but also ambitious. One university friend later recalled that May hoped to be Britain's first female prime minister, and "was quite irritated when Margaret Thatcher got there first."

She was not a natural political campaigner; her stiff public appearances as prime minister landed her the nickname "The Maybot." Her only touches of flamboyance are a fondness for bold outfits and accessories like brightly patterned kitten-heel shoes.

FLE - In this Monday May 29, 2017 file photo Britain's Prime Minister Theresa May, left is interviewed by broadcaster Jeremy Paxman, during a general election broadcast, in London. Theresa May says she'll quit as UK Conservative leader on June 7, sparking contest for Britain's next prime minister. (Stefan Rousseau Pool Photo via AP, File)

FLE - In this Monday May 29, 2017 file photo Britain's Prime Minister Theresa May, left is interviewed by broadcaster Jeremy Paxman, during a general election broadcast, in London. Theresa May says she'll quit as UK Conservative leader on June 7, sparking contest for Britain's next prime minister. (Stefan Rousseau Pool Photo via AP, File)

But she soon established a reputation for solid competence and a knack for vanquishing flashier rivals.

May served for six years in the notoriously thankless job of home secretary, responsible for borders, immigration and law and order. In 2016, she beat flashier and better-known politicians, including Brexit-backer Boris Johnson — now the favorite to succeed her — to become Britain's second female prime minister, after Margaret Thatcher.

May was the surprise winner of a Conservative leadership contest triggered when Prime Minister David Cameron stepped down after voters rejected his advice to remain in the EU, instead voting 52%-48% to leave.

FILE - In this Thursday, May 25, 2017 file photo U.S. President Donald Trump touches the back of British Prime Minister Theresa May during a working dinner meeting at the NATO headquarters during a NATO summit of heads of state and government in Brussels. Theresa May says she'll quit as UK Conservative leader on June 7, sparking contest for Britain's next prime minister. (AP PhotoMatt Dunham, File)

FILE - In this Thursday, May 25, 2017 file photo U.S. President Donald Trump touches the back of British Prime Minister Theresa May during a working dinner meeting at the NATO headquarters during a NATO summit of heads of state and government in Brussels. Theresa May says she'll quit as UK Conservative leader on June 7, sparking contest for Britain's next prime minister. (AP PhotoMatt Dunham, File)

In her first speech as prime minister in July 2016, May sketched out plans for an ambitious policy agenda. She spoke of giving the poor a helping hand and lifting barriers to social mobility.

But Brexit soon crowded out almost all other policies.

Like Cameron, May had campaigned to remain, but in office she became a champion of Brexit. "Brexit means Brexit" became her mantra — a meaningless one, said her detractors, as it emerged that undoing 45 years of ties with the bloc would be a fraught and complex process.

FILE - In this Tuesday March 28, 2017 file photo Britain's Prime Minister Theresa May, sitting below a painting of Britain's first Prime Minister Robert Walpole, signs the official letter to European Council President Donald Tusk, in 10 Downing Street, London, invoking Article 50 of the bloc's key treaty, the formal start of exit negotiations. Theresa May says she'll quit as UK Conservative leader on June 7, sparking contest for Britain's next prime minister. (Christopher FurlongPool Photo via AP, File)

FILE - In this Tuesday March 28, 2017 file photo Britain's Prime Minister Theresa May, sitting below a painting of Britain's first Prime Minister Robert Walpole, signs the official letter to European Council President Donald Tusk, in 10 Downing Street, London, invoking Article 50 of the bloc's key treaty, the formal start of exit negotiations. Theresa May says she'll quit as UK Conservative leader on June 7, sparking contest for Britain's next prime minister. (Christopher FurlongPool Photo via AP, File)

Attempting to win the support of Conservative Brexiteers suspicious of her past pro-EU leanings, May set out firm red lines in negotiations with the EU: Britain would leave the bloc's single market and customs union and end the right of EU citizens to live and work in the U.K.

For a time, May's resolve helped her unite the warring factions of her party, which for decades has been divided over policy toward Europe.

But she then gambled on a snap election in June 2017, in an attempt to bolster her slim majority in Parliament and strengthen her hand in Brexit negotiations with the EU.

FILE - In this Friday Sept. 22, 2017 file photo British Prime Minister Theresa May delivers her speech, in Florence, Italy. (AP PhotoAlessandra Tarantino, Pool, File)

FILE - In this Friday Sept. 22, 2017 file photo British Prime Minister Theresa May delivers her speech, in Florence, Italy. (AP PhotoAlessandra Tarantino, Pool, File)

The move backfired. May ran a lackluster campaign on a platform that included plans to cut benefits to pensioners and change the way they pay for long-term care — quickly dubbed a "dementia tax." The Conservatives lost their majority, and May had to strike a deal with 10 lawmakers from Northern Ireland's Democratic Unionist Party to stay in power.

The DUP's support became a complication when the border between Northern Ireland and EU member Ireland emerged as a major issue in Brexit negotiations. The unionist party strongly opposed special measures to ensure the border remained free of customs posts and other barriers, worrying they might weaken the bonds between Northern Ireland and the rest of the U.K.

May pressed on and in November 2018 struck a divorce agreement with the EU, setting out the terms of Britain's departure and establishing a transition period of almost two years for the two sides to work out their future relations.

FILE - In this Tuesday, Sept. 26, 2017 file photo European Council President Donald Tusk meets British Prime Minister Theresa May at 10 Downing Street in London.(AP PhotoFrank Augstein, File)

FILE - In this Tuesday, Sept. 26, 2017 file photo European Council President Donald Tusk meets British Prime Minister Theresa May at 10 Downing Street in London.(AP PhotoFrank Augstein, File)

All that remained was for the British and European Parliaments to ratify it. And that is where May's best-laid plans came undone.

Her careful compromise of an agreement was rejected by both sides of the Brexit debate. Brexiteers felt it gave too much away and left Britain bound to EU rules. Pro-EU lawmakers wanted a softer Brexit that kept close economic ties to the bloc. In January, May's deal was rejected by 230 votes, the biggest government defeat in British parliamentary history.

Whatever her flaws, May was no quitter. Late last year she likened herself to Geoffrey Boycott, a cricketer who was famous for his dull but effective batting style.

FILE - In this Friday, Sept. 29, 2017 file photo British Prime Minister Theresa May waits for the start of a working session at an EU Digital Summit in Tallinn, Estonia. (AP PhotoVirginia Mayo, File)

FILE - In this Friday, Sept. 29, 2017 file photo British Prime Minister Theresa May waits for the start of a working session at an EU Digital Summit in Tallinn, Estonia. (AP PhotoVirginia Mayo, File)

"Geoffrey Boycott stuck to it and he got the runs in the end," she said.

She tried again to get her Brexit deal approved, losing by 149 votes. A third attempt narrowed the margin of defeat to 48.

She tried talks with the Labour Party about securing a compromise, but managed only to further alienate her own lawmakers with her concessions to the opposition. A promise to let Parliament vote on whether to hold a new EU membership referendum was the final straw.

FILE - In this Friday, Oct. 20, 2017 file photo British Prime Minister Theresa May waits for the arrival of European Council President Donald Tusk prior to a bilateral meeting with European Council President Donald Tusk during an EU summit in Brussels. (AP PhotoGeert Vanden Wijngaert, Pool)

FILE - In this Friday, Oct. 20, 2017 file photo British Prime Minister Theresa May waits for the arrival of European Council President Donald Tusk prior to a bilateral meeting with European Council President Donald Tusk during an EU summit in Brussels. (AP PhotoGeert Vanden Wijngaert, Pool)

By this time, a growing number of Conservatives had concluded that May was the problem and would have to leave before Brexit could be sorted out.

But she resisted the pressure, planning instead to try for a fourth time by bringing a withdrawal agreement bill to Parliament for a vote.

In the end, the pressure became irresistible.

FILE - In this Friday, Dec. 8, 2017 file photo, from left, Britain's Secretary of State for Exiting the European Union David Davis, Britain's Prime Minister Theresa May, European Commission President Jean-Claude Juncker and European Union's chief Brexit negotiator Michel Barnier meet at the European Commission in Brussels. (Eric Vidal, Pool Photo via AP, File)

FILE - In this Friday, Dec. 8, 2017 file photo, from left, Britain's Secretary of State for Exiting the European Union David Davis, Britain's Prime Minister Theresa May, European Commission President Jean-Claude Juncker and European Union's chief Brexit negotiator Michel Barnier meet at the European Commission in Brussels. (Eric Vidal, Pool Photo via AP, File)

FILE - In this Thursday Jan. 18, 2018 file photo Britain's Prime Minister Theresa May and French President Emmanuel Macron during a media conference at the Royal Military Academy Sandhurst, in Camberley, England, after UK-France summit talks. (Stefan RousseauPool via AP)

FILE - In this Thursday Jan. 18, 2018 file photo Britain's Prime Minister Theresa May and French President Emmanuel Macron during a media conference at the Royal Military Academy Sandhurst, in Camberley, England, after UK-France summit talks. (Stefan RousseauPool via AP)

FILE - In this Friday, Feb. 16, 2018 file photo British Prime Minister Theresa May speaks behind the red light of a camera during a press conference with German Chancellor Angela Merkel, right, after a meeting in the chancellery in Berlin, Germany. (AP PhotoMarkus Schreiber, File)

FILE - In this Friday, Feb. 16, 2018 file photo British Prime Minister Theresa May speaks behind the red light of a camera during a press conference with German Chancellor Angela Merkel, right, after a meeting in the chancellery in Berlin, Germany. (AP PhotoMarkus Schreiber, File)

FILE - In this Monday, April 23, 2018 file photo a pigeon takes off as Britain's Prime Minister Theresa May arrives to attend a Memorial Service to commemorate the 25th anniversary of the murder of black teenager Stephen Lawrence at St Martin-in-the-Fields church in London. (AP PhotoMatt Dunham, File)

FILE - In this Monday, April 23, 2018 file photo a pigeon takes off as Britain's Prime Minister Theresa May arrives to attend a Memorial Service to commemorate the 25th anniversary of the murder of black teenager Stephen Lawrence at St Martin-in-the-Fields church in London. (AP PhotoMatt Dunham, File)

FILE - In this Thursday, May 17, 2018 file photo German Chancellor Angela Merkel, right, speaks with French President Emmanuel Macron, left, and British Prime Minister Theresa May after meeting at a hotel on the sidelines of the EU-Western Balkans summit in Sofia, Bulgaria. (AP PhotoDarko Vojinovic, File)

FILE - In this Thursday, May 17, 2018 file photo German Chancellor Angela Merkel, right, speaks with French President Emmanuel Macron, left, and British Prime Minister Theresa May after meeting at a hotel on the sidelines of the EU-Western Balkans summit in Sofia, Bulgaria. (AP PhotoDarko Vojinovic, File)

FILE - In this Friday, July 13, 2018 file photo U.S. President Donald Trump, left, listens to British Prime Minister Theresa May, right, speak during their meeting at Chequers, in Buckinghamshire, England. (AP PhotoPablo Martinez Monsivais, File)

FILE - In this Friday, July 13, 2018 file photo U.S. President Donald Trump, left, listens to British Prime Minister Theresa May, right, speak during their meeting at Chequers, in Buckinghamshire, England. (AP PhotoPablo Martinez Monsivais, File)

FILE - In this Wednesday, Oct. 3 , 2018 file photo Conservative Party Leader and Prime Minister Theresa May dances as she arrives on stage to address delegates during a speech at the Conservative Party Conference at the ICC, in Birmingham, England. (AP PhotoRui Vieira, File)

FILE - In this Wednesday, Oct. 3 , 2018 file photo Conservative Party Leader and Prime Minister Theresa May dances as she arrives on stage to address delegates during a speech at the Conservative Party Conference at the ICC, in Birmingham, England. (AP PhotoRui Vieira, File)

FILE - In this Nov. 14, 2018 file photo Britain's Prime Minister Theresa May announces that her Cabinet has agreed to a draft Brexit deal with the European Union after "impassioned" debate, outside 10 Downing Street in London. (AP PhotoMatt Dunham, File)

FILE - In this Nov. 14, 2018 file photo Britain's Prime Minister Theresa May announces that her Cabinet has agreed to a draft Brexit deal with the European Union after "impassioned" debate, outside 10 Downing Street in London. (AP PhotoMatt Dunham, File)

FILE - In this Thursday, Nov. 15, 2018 file photo Britain's Prime Minister Theresa May reacts during a press conference inside 10 Downing Street in London. (AP PhotoMatt Dunham, Pool)

FILE - In this Thursday, Nov. 15, 2018 file photo Britain's Prime Minister Theresa May reacts during a press conference inside 10 Downing Street in London. (AP PhotoMatt Dunham, Pool)

FILE - In this Thursday, Dec. 13, 2018 file photo British Prime Minister Theresa May, center, arrives for a round table meeting at an EU summit in Brussels. (AP PhotoAlastair Grant, File)

FILE - In this Thursday, Dec. 13, 2018 file photo British Prime Minister Theresa May, center, arrives for a round table meeting at an EU summit in Brussels. (AP PhotoAlastair Grant, File)