South Africa's governing African National Congress (ANC) has suffered its worst electoral setback since apartheid ended in 1994.
With 94% of the votes counted after Wednesday's municipal elections, the party has lost the key battleground of Nelson Mandela Bay to the opposition Democratic Alliance (DA).
The two parties are in a close fight for Johannesburg and Pretoria.
But the ANC is still in the lead nationally, with 54% of the vote.
The ANC has won more than 60% of the vote at every election since the end of apartheid more than two decades ago.
Unemployment and corruption scandals surrounding President Jacob Zuma have tarnished the ANC's image.
Named after ANC liberation hero and South Africa's first democratically elected president, the loss of Nelson Mandela Bay is a big blow to the party.
Many of the leaders of the struggle against apartheid come from the area.
DA leader Mmusi Maimane says his party has given voters a viable alternative to the ANC
The DA, which took 46.5% compared to the ANC's 41%, says it is in talks with other parties to form a coalition in the municipality on South Africa's southern coast.
The ANC has conceded defeat in Nelson Mandela Bay after initially saying it was going to challenge the result.
"Of course we have had setbacks in areas like the Nelson Mandela Bay but we are magnanimous in victory and also magnanimous in defeat because we are democrats," private broadcaster ENCA quoted ANC's chief whip Jackson Mthembu as saying.
DA leader Mmusi Maimane said the Nelson Mandela Bay had voted for change.
"I think that to me says that our message got through - it says our people heard us and South Africans still believe in a dream of a non-racial South Africa, South Africans still want our country to prosper," he said.
The BBC's Nomsa Maseko says as it looks like no party will win an outright majority in the economic hubs of Johannesburg or Tshwane, and coalition negotiations are already underway.
Final results are expected later on Friday.
By Friday mid-morning, the ANC had 54%, followed by 26% for the DA and 8% for the radical Economic Freedom Fighters (EFF).
The local elections are being seen as an indication of the mid-term popularity of President Zuma.
Correspondents say a poor ANC performance could embolden Mr Zuma's rivals within the party to challenge him.
The next general elections are due in 2019 but Mr Zuma cannot stand for a third term as president.
The vote is seen as a possible indicator for the general election due in 2019
South Africa's economy has also been one of the main issues for voters, with growth expected to be zero this year, and unemployment standing at 27%.
Protests demanding better housing and amenities have sprung up across South Africa.
Mr Zuma has also had to weather a corruption scandal, after being ordered to repay taxpayers' money spent on his private home.
Security was tight for the elections and the electoral commission said voting had passed off smoothly.
Latest Stories
-
World Menstrual Hygiene Day: Pencils of Promise and partners intensify menstrual hygiene campaign
4 seconds -
Chief Justice Torkornoo attempting to frustrate her impeachment process – Prof. Appiagyei-Atua
7 minutes -
CJ’s impeachment process politicised; creates a bad scene – Prof. Appiagyei-Atua
9 minutes -
Perennial flooding shows that leadership takes citizens for granted – Prof. Appiagyei-Atua
14 minutes -
Johnnie Walker Blonde: A smooth new era of whisky begins
14 minutes -
Flooding in Ghana stems from indiscipline – Former Deputy AG
19 minutes -
Flooding: Land tenure system in Ghana has issues – Dr Khalid
22 minutes -
Ghana has no flooding problem; it suffers poor planning, lack of enforcement – Amanda Clinton
30 minutes -
Kow Essuman champions arbitration and investment at AEA Congress in Madrid
2 hours -
A new dawn in Ghana’s economy – Kudos to the men steering the ship
2 hours -
“Swearing-in fiasco broke me” – Naa Momo Lartey
3 hours -
Ghana’s roadmap to a safer future through Tobacco Harm Reduction: Reflections on the Lives Saved Report
3 hours -
KIA dispels “false” safety breach reports
3 hours -
External sector outlook favourable; Gross reserves amounted to $10.7bn in April 2025 – BoG
3 hours -
Consumer, business confidence shows significant improvement, highest in 7 years – BoG
3 hours