South African President Cyril Ramaphosa was re-elected for a second term after his humbled ANC cobbled together an unprecedented coalition government.

Lawmakers in Cape Town voted overwhelmingly on Friday to put Ramaphosa, 71, back in office for another five years after the May 29 general election produced no outright winner.

"I am humbled and honoured that you, as members of the National Assembly, have... decided to elect me to be the President of the Republic of South Africa," Ramaphosa said in his acceptance speech.

The election marked a historic turning point for South Africa, ending three decades of dominance by the African National Congress of the late Nelson Mandela.

The party that led the anti-apartheid struggle won only 40 percent of the vote and, for the first time, lost its absolute majority in parliament.

It has now struck a deal to form what it calls a government of national unity.

"This is a historic juncture in the life of our country, which requires that we must work and act together," Ramaphosa said.

ANC Secretary General Fikile Mbalula said on Friday the broad coalition brings together a majority of the 18 parties that won representation in the 400-seat National Assembly.

These include the centre-right Democratic Alliance (DA), the Zulu nationalist Inkatha Freedom Party and other smaller groups.

Ramaphosa was re-elected by fellow MPs with 283 votes in a secret ballot.

He saw off a last-minute challenge by Julius Malema, the firebrand leader of the radical leftist Economic Freedom Fighters (EFF), whose candidacy gained 44 votes.

Ramaphosa will be sworn in next week in Pretoria and then unveil his new cabinet.

South Africa's BRICS ally China on Saturday welcomed Ramaphosa's re-election with President Xi Jinping sending him a congratulatory note, according to state media.

And Ukrainian President Volodymyr Zelensky also congratulated Ramaphosa, hailing South Africa's "joint efforts to restore just peace in Ukraine."

Earlier, Chief Justice Raymond Zondo had opened the parliament's first sitting, swearing in MPs in batches ahead of votes on the election of a speaker and deputy speaker.

The first post went to the ANC's Thoko Didiza and, in a first sign the power-sharing deal was working, the second went to the DA's Annelie Lotriet. Both are women and Lotriet is from South Africa's white minority.

- 'Illegal' -

 

Lawmakers cast their ballot one by one in a lengthy ceremony held in a Cape Town convention centre, as the parliament building is being rebuilt after a 2022 fire.

EFF members took the oath wearing red overalls and in some cases rubber boots and plastic construction worker helmets.

They declined to support the incoming administration, having refused to countenance joining an alliance with right-wing or white-led parties.

"This is not a government of national unity, this is a grand coalition between the ANC and white monopoly capital. History will judge you harshly," EFF leader Malema said, after conceding defeat.

Graft-tainted former president Jacob Zuma's new party uMkhonto weSizwe (MK), which came third in the election, has disputed the results and its MPs boycotted Friday's sitting.

"The sitting of the national assembly today as far as we're concerned is illegal and unconstitutional," MK spokesman Nhlamulo Ndhlela told AFP.

A former trade unionist turned millionaire businessman, Ramaphosa will preside over a government combining radically different political views.

The ANC is a historically pan-Africanist, progressive party of the left that has overseen welfare and economic empowerment programmes for poor, black South Africans.

The largest coalition party, the DA, pushes a liberal, free-market agenda. Smaller parties that are understood to have agreed to join the government range from the left to the far right.

"At the heart of this government of national unity statement is a shared respect and defence of our constitution and the rule of law," DA leader John Steenhuisen said.

- No easy road -

 

The agreement extended to regional coalitions in Johannesburg's Gauteng province and in KwaZulu-Natal, the Zulu heartland.

Zuma's MK won the most votes in the latter but was left empty-handed as coalition members managed to get a wafer-thin majority of 41 out of 80 provincial councillors.

DA's Steenhuisen said the coalition agreement included a consensus mechanism to deal "with the disagreements that will inevitably arise".

Ramaphosa first came to power in 2018 after Zuma was forced out under the cloud of corruption allegations.

Under his watch South Africa suffered from record power cuts, the economy languished and crime remained rife. Unemployment is at almost 33 percent.

He will now have the arduous task to bridge conflicting views within government to turn around South Africa's economic fortunes.