Louis XII (27 June 1462 – 1 January 1515) was King of France from 1498 to 1515 and King of Naples from 1501 to 1504. The son of Charles, Duke of Orléans, and Maria of Cleves, he succeeded his 2nd cousin once removed and brother in law at the time, Charles VIII, who died without direct heirs in 1498. Before his accession to the throne of France, he was known as Louis of Orléans and was compelled to be married to his disabled and supposedly sterile cousin Joan by his second cousin, King Louis XI. By doing so, Louis XI hoped to extinguish the Orléans cadet branch of the House of Valois.