For three days, rioters fought with police, hurling petrol bombs, setting fire to cars and schools and looting shops.