 In December 1676, Maria Sophia's sister Eleonore Magdalene was married to Holy Roman Emperor Leopold I owing to the family's reputation as producing fertile women.After two marriages, Leopold had no living male heirs.The new Empress Eleonore Magdalene fulfilled her function and quickly mothered two future Holy Roman Emperors (Joseph I and Charles VI).