PHOTO: Dominique Heckels/CNN
Now playing
00:50
David Cameron announces impending resignation
PHOTO: Photo Illustration: Getty Images/CNN
Now playing
03:38
Here's what you need to know about Brexit
Britain's Prime Minister Theresa May leaves 10 Downing Street in London on March 25, 2019. - British Prime Minister Theresa May chaired a meeting of her cabinet amid reports of an attempted coup by colleagues over her handling of Brexit. (Photo by Isabel Infantes / AFP)        (Photo credit should read ISABEL INFANTES/AFP/Getty Images)
PHOTO: ISABEL INFANTES/AFP/Getty Images
Britain's Prime Minister Theresa May leaves 10 Downing Street in London on March 25, 2019. - British Prime Minister Theresa May chaired a meeting of her cabinet amid reports of an attempted coup by colleagues over her handling of Brexit. (Photo by Isabel Infantes / AFP) (Photo credit should read ISABEL INFANTES/AFP/Getty Images)
Now playing
01:44
Theresa May to resign when Brexit is done
Pro-EU demonstrators wave an mixed EU and Union flag as they protest against Brexit, outside of the Houses of Parliament in central London on June 11, 2018. - After a rollercoaster week of Brexit rows within her government and with Brussels, British Prime Minister Theresa May will on Tuesday seek to avoid another setback in a long-awaited showdown with parliament. MPs in the House of Commons will vote on a string of amendments to a key piece of Brexit legislation that could force the government's hand in the negotiations with the European Union. (Photo by Daniel LEAL-OLIVAS / AFP)        (Photo credit should read DANIEL LEAL-OLIVAS/AFP/Getty Images)
PHOTO: DANIEL LEAL-OLIVAS/AFP/AFP/Getty Images
Pro-EU demonstrators wave an mixed EU and Union flag as they protest against Brexit, outside of the Houses of Parliament in central London on June 11, 2018. - After a rollercoaster week of Brexit rows within her government and with Brussels, British Prime Minister Theresa May will on Tuesday seek to avoid another setback in a long-awaited showdown with parliament. MPs in the House of Commons will vote on a string of amendments to a key piece of Brexit legislation that could force the government's hand in the negotiations with the European Union. (Photo by Daniel LEAL-OLIVAS / AFP) (Photo credit should read DANIEL LEAL-OLIVAS/AFP/Getty Images)
Now playing
01:07
What's at stake if a Brexit deal falls through
Pedestrians waling through Waterloo Bridge with the skyline of the City of London in the background on October 27, 2016. 
Britain's economy won a double boost on October 27 on news of faster-than-expected growth following its vote for Brexit and a pledge by Nissan to build new car models in the UK. Gross domestic product expanded by 0.5 percent in the third quarter, official data showed.
 / AFP / Daniel Leal-Olivas        (Photo credit should read DANIEL LEAL-OLIVAS/AFP/Getty Images)
PHOTO: DANIEL LEAL-OLIVAS/AFP/Getty Images
Pedestrians waling through Waterloo Bridge with the skyline of the City of London in the background on October 27, 2016. Britain's economy won a double boost on October 27 on news of faster-than-expected growth following its vote for Brexit and a pledge by Nissan to build new car models in the UK. Gross domestic product expanded by 0.5 percent in the third quarter, official data showed. / AFP / Daniel Leal-Olivas (Photo credit should read DANIEL LEAL-OLIVAS/AFP/Getty Images)
Now playing
02:13
Why Brexit uncertainty means companies plan for the worst
PHOTO: Getty Images
Now playing
03:45
What a fish can tell you about Brexit
Cyclists pass a sign calling for no border to be imposed between Ireland and Northern Ireland outside Newry, Northern Ireland, on November 14, 2018 near the Irish border. - British Prime Minister Theresa May defended her anguished divorce deal with the European Union before rowdy lawmakers on Wednesday before  trying to win the backing of her splintered cabinet with the so-called "Irish backstop" arrangement to guard against the imposition of a hard border between Ireland and Northern Ireland one of the contentious issues, according to reports. (Photo by Paul FAITH / AFP)        (Photo credit should read PAUL FAITH/AFP/Getty Images)
PHOTO: PAUL FAITH/AFP/AFP/Getty Images
Cyclists pass a sign calling for no border to be imposed between Ireland and Northern Ireland outside Newry, Northern Ireland, on November 14, 2018 near the Irish border. - British Prime Minister Theresa May defended her anguished divorce deal with the European Union before rowdy lawmakers on Wednesday before trying to win the backing of her splintered cabinet with the so-called "Irish backstop" arrangement to guard against the imposition of a hard border between Ireland and Northern Ireland one of the contentious issues, according to reports. (Photo by Paul FAITH / AFP) (Photo credit should read PAUL FAITH/AFP/Getty Images)
Now playing
02:06
Brexit: What is the Irish backstop?
PHOTO: CNN
Now playing
01:32
Why there is no easy path in the Brexit deal
EU supporters, calling on the government to give Britons a vote on the final Brexit deal, wave EU flags as they participate in the 'People's Vote' march in central London, Britain March 23, 2019. REUTERS/Henry Nicholls
PHOTO: Henry Nicholls/Reuters
EU supporters, calling on the government to give Britons a vote on the final Brexit deal, wave EU flags as they participate in the 'People's Vote' march in central London, Britain March 23, 2019. REUTERS/Henry Nicholls
Now playing
01:31
Massive crowds march against Brexit in London
Now playing
02:59
May puts the pressure on lawmakers in Brexit address
PHOTO: Parliament TV
Now playing
01:59
Parliament votes to seize control of Brexit process
PHOTO: Parliament TV
Now playing
02:12
Corbyn rips May, demands no confidence vote
PHOTO: parliamentlive.tv
Now playing
01:19
Theresa May's brexit deal suffers historic defeat
PHOTO: EBS
Now playing
02:32
How the EU negotiated its first-ever divorce
PHOTO: CNN
Now playing
01:24
Once pro-leave town feels Brexit uncertainty
Irish border drone footage
PHOTO: CNN
Irish border drone footage
Now playing
01:59
Why the Irish border is impacting Brexit

Story highlights

NEW: Theresa May officially named Conservative Party leader

May's sole rival, Andrea Leadsom, pulled out of the race

(CNN) —  

British Prime Minister David Cameron is to resign Wednesday, paving the way for Home Secretary Theresa May to take the reins.

May was officially named Conservative Party leader and successor to Cameron “with immediate effect” Monday, said Graham Brady, chair of the 1922 Committee, a collection of Conservative members of Parliament key to electing the party leader. She will replace Cameron on Wednesday evening.

PHOTO: CNN

In remarks shortly after her leadership was affirmed, May said her priorities will be to administer Britain’s exit from the European Union, a move approved by voters last month, to unite the country and to create a “strong, new, positive vision for the future,” not just for the privileged few, but for everyone.

Cameron had already announced he would step down by October after failing to convince the country to remain in the EU in the divisive June 23 referendum that sent shockwaves through Britain’s political establishment.

But Monday, May’s only remaining rival to replace Cameron – Energy Minister Andrea Leadsom – pulled out of the race following controversy over comments she made about motherhood and leadership.

“Obviously, with these changes, we now don’t need to have a prolonged period of transition. And so tomorrow I will chair my last Cabinet meeting. On Wednesday I will attend the House of Commons for Prime Minister’s questions,” Cameron told reporters Monday outside 10 Downing Street.

“And then after that I expect to go to the palace and offer my resignation. So we will have a new prime minister in that building behind me by Wednesday evening.”

The vote between May and Leadsom was supposed to go to the wider Conservative Party of 150,000 people, but being the sole candidate, May sidestepped the party rule.

Cameron welcomed Leadsom’s decision to drop out of the race and said he was confident May would steer the country in the right direction, calling her strong and competent, and offering her his full support.

Is this democratic?

May became the last one standing for a job no one else really wanted.

It is the latest twist in Britain’s political saga that ensued after the “Brexit” vote.

May, who supported Britain remaining in the EU, reiterated her commitment to Brexit on Monday.

“Brexit means Brexit, and we’re going to make a success of it. There will be no attempts to remain inside the EU. No attempts to rejoin it by the back door. No second referendum. The country voted to leave the European Union, and as prime minister, I will make sure we leave the European Union,” she said.

The country is entering uncharted territory – it is unprecedented for a candidate in Britain to run unopposed at this stage of a leadership change, and May’s quick succession to the country’s leadership is raising questions about the whole process. How can a leader be democratically chosen by so few people?

Some 329 Conservative members of Parliament voted to whittle down five candidates to two for their party’s leadership, but it seems the 150,000 party members who were supposed to have the final say will have no input in it at all.

In Britain’s parliamentary system, the leader of the ruling party is automatically made prime minister.

“There is an absurdity in the system that a prime minister can be chosen by people who are supporters of one party when it is in government,” CNN political contributor Robin Oakley said.

“There will undoubtedly be some frustration in the public, but there’s nothing much that can be done. There was a reasonable process in place, but if the last contender doesn’t have the stomach for a fight, this is how things will be decided.”

Some complained on Twitter that they were being left out of the whole process and demanded a general election.

Tim Farron, leader of the Liberal Democrats, also tweeted his objections.

“The Tories now have no mandate. Britain deserves better than this,” he said.

Councilor Usman Ahmed of the opposition Labour Party also called the system undemocratic.

But the Labour Party isn’t offering any greater stability. It is suffering a leadership earthquake of its own, with Angela Eagle, a senior member in the party, officially launching a challenge to leader Jeremy Corbyn on Monday.

Corbyn became leader after Labour lost the last election, and the masses adore him for bringing tens of thousands of new members from the left into a party accused of being too centrist.

For the same reason, he has struggled to bring his members of Parliament together, the majority seeing him as unrealistic and unelectable.

Leadsom faced criticism

PHOTO: CNN

Leadsom, the energy minister, conceded Monday she would have struggled to unite the party had she been elected.

“Theresa May carries over 60% of support from the party. She is ideally placed to implement Brexit and has promised to do so. I have concluded that the interests of our country are best served by the implementation of a strong leader,” Leadsom said.

“I am therefore withdrawing from the leadership election,” she said, adding that she gave May her “full support.”

Leadsom’s withdrawal from the race came in the face of pressure from a faction of lawmakers in the warring Conservative Party.

The energy minister has drawn fierce criticism in the past week, accused of exaggerating her professional experience and asserting she could run the country better than May because she is a mother.

Daunting job

The new prime minister faces the daunting job of negotiating a deal with an angered EU, one that does not cripple the British economy and keeps the country on friendly terms with neighbors.

May, often described as “a safe pair of hands” to take the UK through its negotiations, made a speech Monday that she would follow through with the withdrawal from the EU.

Will the next British prime minister have the job from hell?

CNN’s Oakley said May, who had a reputation as a serious-minded workaholic, was “the nearest thing you could find in British politics today to Margaret Thatcher.”

One of the longest-serving home secretaries in British history, May backed remaining in the EU, though she is known to hold Euroskeptic views and didn’t take a prominent role in the campaign.

Leadsom was a strong advocate of leaving the EU, marking quite a turnaround for the politician, who three years ago said it would be a “disaster” for the UK to leave the union.

She defended that stance, saying that she had been on a “journey” since and had changed her mind.

Leadsom set out her post-Brexit vision ahead of the vote in a speech peppered with a strong sense of patriotism.

“I truly believe we can be the greatest nation on Earth,” she said, promising “prosperity,” not “austerity.”

CNN’s Eliott C. McLaughlin contributed to this report.