Louis XII
Louis's first wife was Jeanne of France, who was the daughter of Louis XI of France. At the time, Louis was not expected to become King of France. The King, Charles VIII, was a young man and could still have had children, but Charles had an accident and died suddenly. Charles was Jeanne's brother. Louis was Charles's cousin and next in line to the throne. When he became king, he had to end his marriage to Jeanne, partly because she was disabled and could not have children.