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
-
Zirkzee scores winning penalty as 10-man Manchester United knock out Arsenal from FA Cup
7 minutes -
George Quaye tips Dzifa Gomashie for Tourism Minister position
14 minutes -
MTN FA Cup: Kotoko beat Accerler8z to book last 16 spot
17 minutes -
Free SHS and the NDC’s dilemma: A look into the future
43 minutes -
NIB D-G bought state lands at Cantoments for ¢160k – Documents reveal
59 minutes -
Dr Arthur Kennedy: A reset for Ghana
2 hours -
Teacher trainees call for resolution of strikes before colleges reopen
2 hours -
National Prayer and Thanksgiving Service to be held today at UPSA
2 hours -
‘Take the naughty, stealing taxes away’ – E.P Church Moderator to President Mahama
3 hours -
Employee Assistance Programmes: The heartbeat of a 24-Hour economy
3 hours -
Atebubu drivers attack Police after suspected robbers killed 75-year-old driver
3 hours -
Ejura Death: Family rejects autopsy report, alleges police brutality
3 hours -
Paramount Chief of Wenchi instructs illegal miners to stop operating in the area
4 hours -
AGRA Board Chair urges partners and MPs to support Ghana’s food systems transformation efforts
6 hours -
Sissala East constituents urge Mahama to recover looted state funds
6 hours