Following the death of Archambaud IX in 1249 on crusade, the title then passed through his daughters; first, Matilda II (also known as "Mahaut"), Countess of Nevers, Auxerre and Tonnerre, and second, Agnes of Bourbon, whose husband, John of Burgundy, was the second son of the Duke of Burgundy, Hugh IV, and therefore a male-line descendant of Hugh Capet. John, himself seigneur de Charolais became lord of Bourbon as well upon the death of Matilda in 1262. He died five years later at the age of thirty-six and Agnes remained a widow. John's daughter by Agnes, Beatrice, after the death of her mother in 1287, became his heir both in Charolais and Bourbonnais. Her spouse, Robert of France, was the sixth son of saint Louis IX, King of France, and the founder of the line which was to reach the throne of France in the person of its 10th-degree descendant, King Henry IV of France. The son of Robert and Beatrice, Louis, became the first Duke of Bourbon, superseding the previous rank of "seigneur".