In the late 13th century, when the Dampierre count Guy of Flanders entered into the Franco-Flemish War against his suzerain King Philippe IV of France, the citizens of Dunkirk sided with the French against their count, who at first was defeated at the 1297 Battle of Furnes, but reached "de facto" autonomy upon the victorious Battle of the Golden Spurs five years later and exacted vengeance. Guy's son, Count Robert III (1305–1322), nevertheless granted further city rights to Dunkirk; his successor Count Louis I (1322–1346) had to face the Peasant revolt of 1323–1328, which was crushed by King Philippe VI of France at the 1328 Battle of Cassel, whereafter the Dunkirkers again were affected by the repressive measures of the French king.