Parts of Flanders became a French possession following the Treaty of Aix-la-Chapelle in 1668, ending the War of Devolution (1667–1668) which saw Louis XIV's French armies overrun the Habsburg-controlled Spanish Netherlands. With the fall of the fortresses of Bergues (6 June 1667), Louis XIV took hold of Ledringhem, part of the Châtellenie.