At least 24 cars were set on fire and foreign‑owned shops were looted as anti‑immigration protests flared in Johannesburg’s Soweto township and Durban, police said on Thursday.

The violence followed a nationwide court ruling that permits migrants who entered illegally to submit asylum applications, prompting angry crowds at immigration centres and government reception facilities.

Police reports noted 14 vehicles were torched in Durban and 10 in Soweto, where gunshots were heard during clashes between residents and foreign shopkeepers. Rubber bullets were fired to disperse crowds, and downtown businesses closed their doors as the unrest escalated.

Acting police commissioner Puleng Dimpane condemned the property damage and pledged to pursue those responsible.

The country’s government says the new policy complies with the Constitutional Court decision and that asylum seekers will still face individual assessments; the ruling does not grant automatic legal status.

South Africa has endured repeated xenophobic attacks for nearly two decades, often targeting migrants from neighbouring states, and the latest unrest comes against a backdrop of deep inequality, high unemployment and widespread poverty.