Louis XIII
Although he was married, many people thought that he would never produce an heir.  Then, after 23 years of marriage, his wife Anne gave birth to a baby boy.  He was to become King Louis XIV of France.