Westphalia, the Elector of Saxony had been the director of the Protestant body in the Reichstag. To placate the other Protestant states in the Empire, Augustus nominally delegated the directorship of the Protestant body to Johann Adolf II, Duke of Saxe-Weissenfels. However, when the Elector's son also converted to Catholicism, the Electorate faced a hereditary Catholic succession instead of a return to a Protestant Elector upon Augustus's death. When the conversion became public in 1717, Brandenburg-Prussia and Hanover attempted to oust Saxony from the directorship and appoint themselves as joint directors, but they gave up the attempt in 1720. Saxony would retain the directorship of the Protestant body in the Reichstag until the dissolution of the Holy Roman Empire in 1806, despite the fact that all remaining Electors of Saxony were Catholic. The wife of Augustus, the Electress Christiane Eberhardine, refused to follow her husband's example and remained a staunch Protestant. She did not attend her husband's coronation in Poland and led a rather quiet life outside Dresden, gaining some popularity for her stubbornness. King of Poland for the first time Following the death of Polish King John III Sobieski and having converted to Catholicism, Augustus won election as King of the Polish–Lithuanian Commonwealth in 1697 with the backing of Imperial Russia and Austria, which financed him through the banker Berend Lehmann. At the time, some questioned the legality of Augustus' elevation, since another candidate, François Louis, Prince of Conti, had received more votes. Each candidate, Conti and Augustus, was proclaimed as king by a different ecclesiastical authority: (the Primate Michaŀ Radziejowski proclaimed Conti and the bishop of Kujawy, Stanisław Dąmbski proclaimed Augustus, with Jacob Heinrich von Flemming swearing to the pacta conventa as Augustus's proxy). However, Augustus hurried to the Commonwealth with a Saxon army, while Conti stayed in France for two months. Although he had led the imperial troops against Turkey in 1695 and 1696 without very much success, Augustus continued the war of the Holy League against Turkey, and after a campaign in Moldavia, his Polish army eventually defeated the Tatar expedition in the Battle of Podhajce in 1698. This victory compelled the Ottoman Empire to sign the Treaty of Karlowitz in 1699. Podolia and Kamieniec Podolski returned to Poland. An ambitious ruler, Augustus hoped to make the Polish throne hereditary within his family, and to use his resources as Elector of Saxony to impose some order