John III, with the support of King Sigismund and the Cods, took the arms against Jacqueline, who was supported by the Hooks, this civil war was known as the "Hook and Cod wars". The troops of uncle and niece met in the Battle of Gorkum in 1417; Jacqueline was victorious, but was forced to leave the major trading city of Dordrecht. In addition, her marital status was again questioned thanks to her uncle, who claimed that without papal dispensation the union was annulled; this caused even more misgivings for Jacqueline about how to maintain her marriage. Even worse, on 29 May 1418 and against the express wishes of King Sigismund, John IV pledged the district of Mons; because of this Jacqueline in 1419 signed the Compensation of Workum ("Ausgleich von Workum") with her cousin Philip the Good, future Duke of Burgundy, under which for a monetary compensation she ceded to him the districts of Dordrecht, Gorkum and Rotterdam.