In Leipzig on 17 April 1692, Eleonore married secondly John George IV, Elector of Saxony and moved with her children to Dresden, where the Saxon court was established. The wedding was concluded at the insistence of Frederick III, Elector of Brandenburg and the Dowager Electress Anna Sophie of Denmark, ostensibly to produce legitimate heirs to the Electorate of Saxony but truly to end the liaison between her son and his mistress, Magdalene Sibylle "Billa" of Neidschutz. The union proved to be unsuccessful; John George IV lived openly with Billa, and she became the first ever Official Mistress of an Elector of Saxony; while Eleonore was relegated to the Hofe. In addition, the Electress suffered two miscarriages during their marriage, in August 1692 and February 1693, and a phantom pregnancy in December 1693. In March 1693 began rumors at the Saxon court that Eleonore was not the lawful wife of John George IV, because at the time of their marriage, he was already married with Billa; There was even found a document confirming the conclusion of a marriage contract between the Elector of Saxony and his mistress, but John George IV said that he did not consider this contract as a formal marriage, and that it was only made for the purpose of legitimizing his offspring with Billa. Nevertheless, throughout his marriage, John George IV desperately wanted to legitimize the relationship with his mistress and tried to get rid of his wife and her children; fearing for her and her children's lives, Eleonore left the Hofe and settled in Pretzsch. During this time, Eleonore confided in the English diplomat George Stepney, who wrote extensively about her and the Saxon court.
Later life
John George IV died on 27 April 1694 from smallpox after being infected by the dying Billa. The new Elector, Frederick Augustus I allowed the Dowager Electress and her children to remain in Pretzsch, where they lived until Eleonore's death two years later, on 9 September 1696. She was buried at Freiberg Cathedral. After her death, Eleonore's children were sent back to Ansbach to the court of their older half-brother George Frederick II, who became in the new Margrave of Brandenburg-Ansbach after Christian Albert's death in 1692. George Frederick II, as well as his predecessor, was a minor and ruled under a regency, who had little interest in the education of the children. William Frederick stayed in Ansbach and in 1703 after the death of his brother inherited the Margraviate; Caroline went to Berlin at Charlottenburg Palace under the care of Frederick III, Elector of Brandenburg, and his wife, Sophia Charlotte of Hanover, who was a friend of Eleonore.