In 1672 when war was declared between the Dutch Republic and England, France, Münster, and Cologne, Bodegraven was just behind the Water Defense Line. The Water Line was inundated and formed a barrier to the advancing French troops. But during the winter the French could advance over the frozen polders to Meije and Zwammerdam. Before reaching Alphen aan den Rijn they could be repelled by the Dutch. Thaw had set in so the only retreat route was along the dike of the Oude Rijn. The French therefore came through Bodegraven and destroyed it. Afterwards, the fort Wierickerschans was built just east of the town.