South Africa's President has vowed to clamp down on xenophobic attacks after five people were killed in such incidents.

Crowds of people, some armed with axes and machetes, gathered in Johannesburg's central business district (CBD) for a third day of unrest today directed against foreigners. 

It came hours after mobs burned and looted shops in the township of Alexandra, prompting police to fire rubber bullets to disperse them.

Police said five deaths, most of them South Africans, had been reported, adding that 189 people had been arrested.

In a video address on Twitter, Cyril Ramaphosa said attacks on businesses run by "foreign nationals is something totally unacceptable, something that we cannot allow to happen in South Africa."

"I want it to stop immediately," said Ramaphosa, adding that the violence had "no justification."

Sporadic violence against foreign-owned stores and enterprises has a long history in South Africa, where many locals blame immigrants for high unemployment, particularly in manual labour.

The country is a major destination for economic migrants from neighbouring Lesotho, Mozambique and Zimbabwe. Others come from much further afield, including South Asia and Nigeria, Africa's most populous country.

But this week's assaults seem to have been on a greater scale than in the past, although the full details remain unknown.

"They burned everything," Bangladeshi shop owner Kamrul Hasan in Alexandra said, adding that his shop gets attacked every three to six months.

"All my money is gone. If the (South African) government pays for my plane ticket, I will go back to Bangladesh," he said.

Alexandra, one of the poorest urban areas in South Africa, is situated just five kilometres from Sandton, the city's business and shopping district.
 

More than 90 people were arrested yesterday in connection with the violence and looting of shops in Johannesburg and surrounding areas, the government said.

Similar incidents occurred in the capital Pretoria yesterday, when local media reported shacks and shops burning in the Marabastad - a central business area largely populated by economic migrants. 

Nigeria summoned its South African ambassador to express "displeasure over the treatment of her citizens" and dispatched a special envoy, who is expected to arrive later this week.

Several Nigerians used social media to call for a boycott of South African companies, including telecoms provider MTN, satellite television service DSTV and retailer Shoprite.

Separately, African Union chairperson Moussa Faki Mahamat condemned the violence "in the strongest terms" but said he was encouraged "by arrests already made by the South African authorities".

The attacks on foreign stores began a day after South African truckers started a nationwide strike to protest against the employment of foreign drivers.

They blocked roads and torched foreign-driven vehicles in parts of the country yesterday.

At least another 20 people were arrested in connection with those attacks in the southeastern province of KwaZulu-Natal.

The violence erupted ahead of a meeting of the World Economic Forum on Africa in Cape Town, where hundreds of political and business leaders will gather for three days from tomorrow.

David Makhura, the premier of Johannesburg's Gauteng province, said rioting was not a solution.

"This issue can be dealt with without resorting to xenophobia," Mr Makhura told reporters.

"There is no country that does not have foreign nationals".

Opposition parties pinned the blame on the ruling African National Congress (ANC).

"South Africans are scared and lack real hope for the future," said Mmusi Maimane, leader of the Democratic Alliance, South Africa's official opposition. "We are seeing economic and social collapse in action."

Mr Ramaphosa took office after elections in May that he won on a platform of reviving the country's economy and boost employment.

But in July, the national statistics office said joblessness had reached 29% - the highest since the country's quarterly labour force survey was introduced 11 years earlier.