Napoleon Bonaparte

Napoleon divorced Josephine (she did not give him an heir) and married Marie Louise - daughter of the defeated Austrian Emperor Francis II.

An excerpt from the article 32 facts about Napoleon Bonaparte

Maria Louisa bore him a son - Napoleon II. He was the emperor's only legitimate son.