Eleanor of Austria
Charles became heir to the Duchy on the death of his elder brother Ferdinand Philippe (1639–1659). In 1678, he married Eleanor of Austria (1653-1697), widow of Michael I, King of Poland; he stood for election twice as King of Poland but was unsuccessful.