A new territorial principality of Artois was established in 1180 by the division of the county of Flanders as a dowry given by the Flemish count Philip of Alsace to his niece Isabelle of Hainaut at the time of her marriage to King Philip II of France. Upon Isabelle's death in 1190, it was claimed as a reverted fief by the French crown, which however met with strong opposition by Flanders. After the French crown prince Louis VIII the Lion, proclaimed "Count of Artois", had campaigned the Flemish lands and captured Count Ferrand, the county was acquired by the French House of Capet after the Flemish defeat at the Battle of Bouvines in 1214 and the 1226 Treaty of Melun.