South African soldiers and police have conducted a series of raids in an effort to curb attacks on foreign nationals and the looting of shops.
Men's hostels in Johannesburg housing mainly South Africans were searched for weapons and 11 arrests were made.
The army was ordered to deploy to volatile areas to stop further attacks that began about three weeks ago.
At least seven people have been killed and 5,000 have been left homeless since the xenophobic violence began.
The army was also deployed during similar violence in 2008, when at least 63 people were killed.
The first deployments were to Alexandra, a poor township north of Johannesburg, where Mozambican Emmanuel Sithole was killed at the weekend.
Floor by floor searches
The hostels are communal areas still owned by the government that used to house mine labourers during the days of white-minority rule.
The BBC's Nomsa Maseko, who witnessed one raid in Johannesburg's Jeppestown, says they are often the target of raids when the police are looking for firearms during a crackdown on crime.
No weapons were found during the raids overnight, and it is believed there may have been a tip-off, she says.
Police say 11 arrests were made for possession of marijuana and suspected stolen items.
A helicopter hovered above one hostel in Jeppestown, as inside police moved from floor to floor conducting searches where the residents were made to lie face down in the corridors, the AFP news agency reports.
On the streets of the neighbourhood, soldiers stood in groups of about six, positioned within a few metres of each other, it says.
Troops have also been despatched to KwaZulu-Natal province, where the unrest began following remarks by Zulu King Goodwill Zwelithini.
The powerful monarch has denied fuelling the xenophobic attacks, saying at a rally on Monday: "If it were true that I said foreigners must go, this country would be up in flames."
More than 900 people have been voluntarily repatriated to their home countries since the violence broke out, officials say.
Defence Minister Nosiviwe Mapisa-Nqakula said the troops were being sent in "as the last resort. The army will serve as a deterrent".
With the unemployment rate at around 25%, many South Africans accuse foreign nationals of taking jobs from locals.
Official data suggests there are about two million foreign nationals in South Africa, but some estimates put the number much higher.
Latest Stories
-
MIPAD recognises young Ghanaian as one of the 2025 Global Top 50 in philanthropy and social impact
15 minutes -
There is massive potential to improve the African game – Kurt Okraku
15 minutes -
Kennedy Agyapong withdraws from NPP ‘Thank You’ Tour, citing security concerns
26 minutes -
I relinquished WAFU presidency to focus on Ghana, CAF roles – Kurt Okraku
28 minutes -
‘I don’t know about tomorrow’ – Kurt Okraku on future CAF ambitions
32 minutes -
‘Is Mahama plotting a third term?’ – Minority alleges constitutional manipulation ahead of May 5 protest
40 minutes -
‘I am more humbled than before’ – Kurt on being 2nd Vice President of CAF
46 minutes -
CJ suspension: Mahama’s actions threaten rule of law and stability – Minority
46 minutes -
‘We will not be spectators’, says Minority as they join protest to ‘Defend Ghana’s Democracy’
58 minutes -
CJ suspension: Minority backs nationwide protest to defend Ghana’s democracy
2 hours -
Today’s front pages: Wednesday, April 30, 2025
2 hours -
Ghana’s record reserves will be prudently managed – BoG Governor assures
2 hours -
Okada on reset, make room to accommodate them, new rules in the offing
3 hours -
WGHS 2004 year group launches major fundraising drive for 2026 Speech Day and Legacy Project
4 hours -
Fidelity Bank launches Orange Inspire to empower creative economy
4 hours