Taking advantage of Charles' absence, Boniface of Castellane stirred up a new revolt in Provence. The burghers of Marseilles expelled Charles' officials, but Barral of Baux stopped the spread of the rebellion before Charles' return. Charles renounced Ventimiglia in favour of the Republic of Genoa to secure her neutrality. He defeated the rebels and forced Castellane into exile. The mediation of James I of Aragon brought about a settlement with Marseilles: its fortifications were dismantled and the townspeople surrendered their arms, but the town retained its autonomy.