After the early and unexpected death of his father in 1677, the royal court decided to give guardianship to his uncle, Frederick Charles, Duke of Württemberg-Winnental.The influential mistress was only allowed to return to the royal court once she had married another man, Count Johann Franz Ferdinand von Würben und Freudenthal (d. 1729).For over two decades, Grävenitz had a strong influence on the government of the land, and it was she who, together with Eberhard Ludwig, moved the royal residence and capital of the duchy from Stuttgart to the sparsely populated city of Ludwigsburg.Because of the early death of his heir, Prince Frederick Louis, in 1731, the power threatened to shift into Catholic hands, which was unthinkable for Protestant Württemberg.Thus Duke Eberhard Louis dissolved his relations with Wilhelmine von Grävenitz and hoped to receive an heir from his legitimate and long ignored wife, Joanna Elisabeth.