Charles V is the younger brother of Ferdinand Philip of Lorraine, who had died at twenty years of age in 1659, and with whose demise Charles had inherited his aunt's Duchy of Bar.
Charles has been the titular Duke of Lorraine from 1675.
Lorraine being occupied by France, Charles had found refuge with the Habsburgs, in whose service he has had a notable military career.
He was supposed to have married Marie Jeanne of Savoy (a cousin via Maria Jeanne's grandmother).
Despite a marriage contract being signed, Charles had backed out of the union, which is seen as void due to not having been consummated.
Marie Jeanne had instead married Charles Emmanuel II, Duke of Savoy, in 1665.
The Habsburg connection had been cemented in 1678 by the marriage of Charles to Eleonora Maria Josefa, Archduchess of Austria, daughter of Ferdinand III, Holy Roman Emperor and Eleonore Gonzaga.
She is also the widow of Michael Korybut Wiśniowiecki, King of Poland, and will pass to her heirs the inheritance of the Gonzaga of Mantua.
In the Imperial service, Charles had first distinguished himself at the battle of August 1, 1664, fighting among Imperial forces against the Turks, and had campaigned in Hungary with general Johann Sporck in 1671.
He had been in command at the siege of Murau in the Steiermark.
The following year he was in command of Imperial cavalry under Raimondo Montecuccoli.
At Seneffe in 1674, he had received a head wound; in 1676 he had been present at the siege of Philipsburg.
Finally, named generalissimo of the Imperial army in April 1683, he will aid the king of Poland at the imminent Battle of Vienna.