A wave of xenophobic attacks escalated in South Africa's seething townships yesterday, with mobs beating foreigners and setting some ablaze in scenes reminiscent of apartheid-era violence.

The unrest has killed at least 22 people since last week and increased political instability at a time South Africa is struggling with dire power shortages, rising inflation and growing disaffection among the poor over President Thabo Mbeki's pro-business policies.

Police fired rubber bullets at rioters in communities around Johannesburg and in the central business district.

Armed with knives, clubs and jugs of petrol, the mobs targeted mostly Zimbabweans and Mozambicans, the biggest groups among immigrants who are accused by the poor of taking jobs and fuelling the high rate of violent crime.

Women were raped, shops and homes looted and dozens of shacks burnt to the ground. Scores have been arrested.

"This is a war," said Lucas Zimila, a 60-year-old Mozambican man who was attacked by a machete-wielding mob while sleeping in his shack in Tembisa, north of Johannesburg, on Sunday night.

"They screamed at me to get out, that I didn't belong here. Then they burned everything in my house," said Mr Zimila, who suffered a five-inch gash in his head. The unrest is an embarrassment for South Africa, which has vaunted its tolerance since the end of apartheid and hopes to encourage foreign visitors for the soccer World Cup in 2010.

The violence is an indicator of growing anger among those who complain they have been left out by Mr Mbeki's policies to promote business and investment. Investors are already worried by growing labour influence in the ruling ANC since Mr Mbeki lost the leadership in December to rival Jacob Zuma.

ANC Treasurer General Matthews Phosa called at the weekend for an early election, saying strong leadership was needed. Mr Mbeki has to step down next year and Mr Zuma is the frontrunner to succeed him.

South Africa, with a population of 50 million, is home to an estimated five million immigrants. Foreigners from poorer countries have been lured by work in mines, farms and homes and by one of the world's most liberal immigration and refugee policies.

Immigrants say that far from being criminals they are more often the victims of crime. Several told Reuters organised criminals were using the violence as cover to rob and loot.

Acting National Police Commissioner Tim Williams said in a statement that more officers would be deployed to trouble spots.

South African papers carried photos of a man set alight by a mob at the weekend. The scenes recalled troubles during apartheid, when activists fought security forces and rival factions. Suspected informants were sometimes burned to death.

Mr Mbeki and Mr Zuma have called for an end to the violence.

Anti-apartheid icon Nelson Mandela said he was saddened by rising hatred of foreigners.

Archbishop Desmond Tutu, another Nobel laureate, pointed out that neighbouring states took in South Africans during the struggle against white minority rule.

"We can't repay them by killing their children," he said.

Hundreds of immigrants have taken refuge in police stations, churches and government offices.

"It's getting worse. They keep coming here because this is a safe place," said Simon Ramollo, a community activist who was arranging bedding and meals for about 200 foreigners.

The biggest group of immigrants - an estimated three million - are from Zimbabwe. They have fled economic collapse at home and the violent political stand-off since disputed March 29 elections gives them little incentive to return home.

Mr Mbeki's critics say his softly, softly approach to Zimbabwe has done too little to end the crisis in that country where the opposition yesterday accused military intelligence agents of a plot to kill party leader Morgan Tsvangirai.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.