The direct heir to the Palatinate was Philip William, Catholic Count Palatine of Neuburg, Duke of Jülich and Berg. His eldest daughter Eleonore married Emperor Leopold , while another, Maria Anna , married Charles II of Spain in 1690.
Philip II of Spain: 10. Philip III of Spain: 21. Anna of Austria: 5. Maria Anna of Austria: 22. Charles II, Archduke of Inner Austria (= 16) 11. Margaret of Austria: 23. Maria Anna of Bavaria (= 17, ≠9) 1. Charles VI, Holy Roman Emperor: 24. Philip Louis, Count Palatine of Neuburg: 12. Wolfgang William, Count Palatine of Neuburg: 25.