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
-
Saminu Abdul Rasheed smashes national record again with 9.84s sprint in Georgia
13 minutes -
Blekusu Coastal project: We’re reclaiming our coastlines – Housing Minister
3 hours -
Pricey plantains push Ghana’s market sellers to diversify
3 hours -
Full list: NPP delegates approve 54 reform motions, reject proposals on youth age, election supervision
3 hours -
WAFCON 2024: Cynthia made it easy – Chantelle hails goalkeeper after penalty saves
3 hours -
Cyber Security Authority boss suspended over use of military bodyguard
4 hours -
WAFCON 2024: I want to make history – Grace Asantewaa dreams of lifting the trophy
4 hours -
Afenyo-Markin accuses NDC of rebranding and claiming credit for NPP projects
4 hours -
2024 WAFCON: Grace Asantewa shines as Black Queens reach semis
4 hours -
WAFCON 2024: Ghana beat Algeria 4-2 on penalties to book semi-final spot for the first time since 2016
4 hours -
NPP Delegates reject motion to shift polling station selection oversight to regional committees
4 hours -
2024 WAFCON: Black Queens set up semifinal clash with hosts Morocco
4 hours -
Dr. Amuasi champions healthy sustainable socio-ecological systems thinking in Lancet One Health Commission Report
4 hours -
Without unity, we’re just individuals with ambition – Afenyo-Markin
4 hours -
Rebecca Tweneboah Darko: Scattered thoughts; Scary times
4 hours