LONDON -- Prince Charles has spent a lifetime waiting to be king, the job he was born to do. On Friday the 69-year-old heir to the British throne got another position to wait for -- he was approved as the next head of the 53-nation Commonwealth of the U.K. and its former colonies.

Commonwealth leaders meeting in London confirmed in a statement that the next chief of the group "shall be His Royal Highness Prince Charles, The Prince of Wales." That won't happen until he succeeds his mother on the throne when she dies.

British Prime Minister Theresa May said the decision was unanimous, but it had not been a foregone conclusion. Elizabeth, who turns 92 on Saturday, has led the Commonwealth since she became queen in 1952. However, the position is not hereditary, and some people have suggested a non-royal leader would give the group a more modern profile.

But any opposition was nipped in the bud by an intervention from the queen, who told the gathered leaders on Thursday it was her "sincere wish" that Charles would one day carry on her Commonwealth work.

Get Breaking News Delivered to Your Inbox

Leaders including Britain's Theresa May and Canada's Justin Trudeau chimed in to say they agreed with the queen.

May told reporters on Friday that Charles was "a proud supporter of the Commonwealth," and "it is fitting that one day he will continue the work of his mother."

The position is largely symbolic, but the queen's commitment has been a major force behind the survival of the Commonwealth. She has visited almost every member country, often multiple times, over her 66-year reign.

Charles is almost as well-traveled as his mother, and is a longtime champion of environmental causes, a priority for the Commonwealth. Its members include small island nations in the Caribbean and Pacific that are among the countries most vulnerable to rising seas, fiercer storms and other effects of global climate change.

Leaders at the meeting signed a "blue charter" to protect the world's oceans and committed to stronger cybersecurity and freer trade.

Britain has tried to use the biennial heads of government meeting to reinvigorate a disparate group that takes in 2.4 billion people in countries from giant India to tiny Tuvalu, and has struggled to carve out a firm place on the world stage.

The next summit, in 2020, will be held in Rwanda, which was never a British colony but has been persuaded to join the club. Former Portuguese colony Mozambique is also a Commonwealth member, and Togo is considering joining.

British officials have been paying more attention to the Commonwealth since the U.K. voted in 2016 to leave the European Union. The government insists Brexit will not lead to isolationism but to an outward-looking "global Britain" -- and the Commonwealth could provide a platform for British diplomatic and cultural clout outside the EU.

Britain laid on a lavish royal welcome for Commonwealth leaders, including a banquet at Buckingham Palace, the use of Windsor Castle for meetings and the deployment of royal glamour couple Prince Harry Meghan Markle to a series of events.

But the summit was overshadowed by uproar over the treatment by U.K. immigration authorities of some long-term British residents from the Caribbean.

May and other government ministers have apologized repeatedly after it emerged that some people who settled in the U.K. in the decades after World War II had recently been refused medical care or threatened with deportation because they could not produce paperwork to show their right to reside in Britain.

The government says they accidentally fell afoul of new measures intended to clamp down on illegal immigration. But opposition politicians say the treatment of the "Windrush generation" -- named for the ship Empire Windrush, which brought the first big group of post-war Caribbean immigrants to Britain in 1948 -- is cause for national shame.

May said Friday that Britain would do "whatever it takes" -- including paying compensation -- to make amends.

"These people are British," she said. "They are part of us. They helped to build Britain, and we are all stronger for their contributions."