South Africa's national intelligence body said Monday that more than 25,000 people have been repatriated in recent weeks ahead of planned anti-immigrant protests, with many others still awaiting departure.

With increasing attacks on African immigrants, even those living legally in the country are scared ahead of an unofficial deadline for illegal foreigners to leave the country.

The June 30 protests in South Africa spotlight the challenges of immigration policy and governance, as various stakeholders voice concerns over the treatment of migrant…