Update 10.10pm 

Theresa May became Britain's prime minister today with the task of leading its complex divorce from the European Union, and quickly named leading 'Brexit' supporters to key positions in her new government.

The former Conservative interior minister, 59, said after being appointed by Queen Elizabeth that she would champion social justice and carve out a bright new future for Britain after last month's shock referendum vote to quit the EU.

READ: Johnson made Foreign Secretary as PM May names her cabinet

"We will rise to the challenge. As we leave the European Union we will forge a bold new positive role for ourselves in the world, and we will make Britain a country that works not for a privileged few, but for every one of us," she said outside 10 Downing Street, vacated hours earlier by David Cameron.

Cameron stepped down after Britons rejected his entreaties to stay in the EU, a decision that has set back European efforts to forge greater unity and created huge uncertainty in Britain and across the 28-nation bloc.

Just over an hour after entering her new office, May began naming ministers, appointing the steady and experienced foreign minister Philip Hammond to take charge of the finance ministry. He replaces George Osborne, whose determination to balance Britain's books made him synonymous with austerity.

In a major surprise, May named former London major Boris Johnson, a leading eurosceptic who had until recently been seen as her main rival for the prime minister's job, to take over as foreign secretary.

READ: A light-hearted Cameron bids farewell

Other prominent 'Leave' campaigners were also rewarded. One, David Davis, took the key role of Secretary of State for Exiting the European Union. Another, Liam Fox, was named to head a new international trade department.

May herself had sided with Cameron in trying to keep Britain inside the EU, so needed to reach out to the winning Leave side in order to heal divisions in the ruling party and show her commitment to respecting the popular vote. "Brexit means Brexit" has quickly become her new mantra.

By awarding such a senior job to Johnson, she also showed a conciliatory side. The two had clashed over policing in London while Johnson was serving as mayor. And since last month's vote, for which he campaigned vigorously, Johnson had suffered widespread criticism and ridicule for failing to present a clear Brexit plan and swiftly dropping out of the leadership race.

With his unkempt blonde hair, bumbling humour and penchant for Latin quotations, the man known to Britons simply as 'Boris' will be the government's most colourful figure, but a controversial choice for conducting sensitive diplomacy with world leaders.

Among other appointments, rising star Amber Rudd switched from the energy ministry to take May's old job as Home Secretary.

'BURNING INJUSTICE'

May will be Queen Elizabeth's 13th prime minister in a line that started with Winston Churchill. An official photograph showed her curtseying to the smiling monarch.

She is also Britain's second female head of government after Margaret Thatcher.

Seen as a tough, competent and intensely private person, already being compared to Germany's Angela Merkel, she must now try to limit the damage to British trade and investment as she renegotiates the country's ties with its 27 EU partners. She will also attempt to unite a fractured nation in which many, on the evidence of the referendum, feel angry with the political elite and left behind by the forces of globalisation.

In comments addressed to ordinary Britons, she spoke of the 'burning injustice' suffered by large sections of society: poor people facing shorter life expectancy; blacks treated more harshly by the criminal justice system; women earning less than men; the mentally ill; and young people struggling to buy homes.

Acknowledging the struggles faced by many people, May declared: "The government I lead will be driven not be the interests of the privileged few, but by yours. We will do everything we can to give you more control over your lives."

She spoke of the "precious bond" between the nations of the United Kingdom, implicit recognition of the tensions generated by the referendum in which England and Wales chose to quit the EU, but Scotland and Northern Ireland voted to stay, raising the possibility of a new Scottish vote on independence.

Outside Downing Street, a group of demonstrators chanted: 'What do we want? Brexit! When do we want it? Now!'

The United States congratulated May and said it was confident in her ability to steer Britain through the Brexit negotiations.

"Based on the public comments we've seen from the incoming prime minister, she intends to pursue a course that's consistent with the prescription that President Obama has offered," White House spokesman Josh Earnest said.

May's predecessor Cameron, appearing earlier in Downing Street with his wife Samantha and their three children, delivered his parting remarks to the nation after six years dominated by the Europe question and the aftermath of the global financial crisis.

"It's not been an easy journey and of course we've not got every decision right," he said, "but I do believe that today our country is much stronger."

In his last parliamentary session as leader, Cameron took the opportunity to trumpet his government's achievements in generating one of the fastest growth rates among western economies, chopping the budget deficit, creating 2.5 million jobs and legalising gay marriage.

Yet his legacy will be overshadowed by his failed referendum gamble, which he had hoped would keep Britain at the heart of a reformed EU.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.