Charles V, Karl V. Leopold, , son of Nicolas Franois, Duke of Lorraine, and Claude Franoise de Lorraine. Karl Leopold was born in Vienna, became the brother in law of Emperor Leopold, and son in law of emperor Ferdinand III. He was a second cousin once removed of his contemporary Louis XIV through the kings grandmother Marie de Medici. He was from a long established family of Lothringen, who had to take refuge from the forces of France. However, he managed to become the titular Duke of Lorraine in 1675 at a time when Lorraine was occupied by France. Since 1663 he had been in imperial Habsburg service and had a very notable military career. In 1683 he became an imperial generalissimo.
Charles V Duke of Lorraine was born on April 3, 1643 to Nicolas Francis in Vienna. Charles Vs claim to the duchy was not recognized by his uncle, Charles IV. Since his prospects were not good he officially joined the court of Vienna in 1662. He became a distinguished soldier in service to the Habsburgs and competed twice unsuccessfully for election as King of Poland.
Source: Wikipedia