The death of Charles II of Spain in 1700 led to the War of the Spanish Succession, and that of Emperor Charles VI in 1740 led to the War of the Austrian Succession. In the former, the House of Bourbon won the conflict and put a final end to the Habsburg rule in Spain. The latter, however, was won by Maria Theresa and led to the succession of the House of Habsburg-Lorraine (German: "Haus Habsburg-Lothringen") becoming the new main branch of the dynasty, in the person of Maria Theresa's son, Joseph II. This new House was created by the marriage between Maria Theresa of Habsburg and Francis Stephan, Duke of Lorraine (both of them were great-grandchildren of Habsburg emperor Ferdinand III, but from different empresses) being this new House a cadet branch of the female line of the House of Habsburg and the male line of the House of Lorraine. It is thought that extensive intra-family marriages within Spanish and Austrian lines contributed to the extinction of the main line.