In 1237, King Louis VIII gave the County of Artois as an appanage to his younger son Robert, who thereby became the progenitor of the House of Artois, a cadet branch of the Capetian dynasty. After the death of his heir Count Robert II at the Battle of the Golden Spurs in 1302, a succession dispute arose between Robert's daughter, Countess Mahaut and her nephew Robert III, who represented the claim of his father Philip, who had died after the Battle of Furnes in 1298. The dispute was settled in favour of Mahaut. Upon her death in 1329, Artois passed to her daughter by the Anscarid count Otto IV of Burgundy, Countess Joan II. Joan II had inherited the County of Burgundy (Franche-Comté) in 1315 and when she died in 1330, she bequested Artois and Franche-Comté to her eldest daughter, Joan III.