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
-
AG moves to strike out suspended CJ’s fresh challenge to removal petition
12 minutes -
Over 200 prophecies submitted since national directive – Presidential Envoy reveals
28 minutes -
Samson Lardy Ayenini to speak at CoMSSAFest 2025 seminar
42 minutes -
Justice Oppong recalled to the bench as Prof Atuguba takes over Ghana School of Law
46 minutes -
Stronger legislation needed for forensic, DNA testing – Expert
49 minutes -
Defamation case: Lawyer for Dua Agyeman cross examines GTEC official
51 minutes -
Three arrested in Accra over possession, manufacture of illegal guns
1 hour -
Our father is irreplaceable – Omane Boamah’s children pay emotional tribute at vigil
1 hour -
‘Daddy, why did you leave so soon?’ – Omane Boamah’s children mourn
1 hour -
Akufo-Addo pays tribute to late Asantehemaa Nana Konadu Yiadom III
2 hours -
UN-Habitat partners with Anloga District to protect coastal towns from climate threats
2 hours -
Prices of petrol and LPG to go up; Diesel to fall from August 16
2 hours -
AfricaHPO, MoE, and GES launch innovative anti-bullying and mental health drive in Ghana’s schools
2 hours -
Ghana Mineworkers’ Union raises red flag over casualisation in mining sector, urges gov’t to act
2 hours -
Prince Adu-Owusu: When a quiet love finally spoke
3 hours