The riots in mid-June, which were sparked by the abuse of a pregnant migrant street hawker, flared over three days and saw rampaging mobs smash and burn government offices, pelt police with stones and bottles and overturn scores of vehicles.

A court in the city of Zengcheng on Thursday sentenced five people to terms ranging from a year and a half to nearly six years, the official Xinhua news agency said.

That followed the sentencing of six other people to terms from nine months to three-and-a-half years on Monday, it said.

Though China’s 150 million or so rural migrant workers have gained better wages and treatment in recent years, the gap between them and established urban residents remains wide, fueling anger about discrimination and ill-treatment.

Other clashes have erupted in southern China in recent months, including in Chaozhou, where hundreds of migrant workers demanding payment of their wages at a ceramics factory attacked government buildings and set vehicles ablaze.