South Africa has begun a “new era”, President Cyril Ramaphosa announced as he was sworn in for a second full term in office.
He remains in office even though his party, the African National Congress (ANC), failed to secure a majority in parliament during last month’s election.
The ANC subsequently made a deal with its long-time rival Democratic Alliance (DA) and other parties to form a coalition government.
Mr Ramaphosa hailed this government during his inauguration speech, but also warned that unless it addressed deep inequalities, the country could become unstable.
“Through the ballots that they have cast, the people of South Africa have made plain their expectation that the leaders of our country should work together,” President Ramaphosa, 71, said solemnly.
“They have directed their representatives to put aside animosity and dissent, to abandon narrow interests, and to pursue together only that which benefits the nation.”
South African dignitaries and African heads of states were invited to the inauguration.
They included the leaders of Nigeria, Angola, Zimbabwe, Congo-Brazzaville, and Eswatini, and gathered in the Nelson Mandela Amphitheatre outside the Union Building in Pretoria.
A huge crowd of supporters formed outside the official seat of government, waving national flags.
Under a sharp blue winter sky, the Chief Justice Raymond Zondo, administered the oath of office.
“I swear I will be faithful to the Republic of South Africa… I will obey, observe and uphold the constitution and all other laws of the republic,” the president said.
A band then played the national anthem. The rendition was followed by a 21-gun salute and a fly-past by army helicopters.