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.
By this time, Augustus was certainly ready for peace, but Charles felt that he would be more secure if he could establish someone with whom he had more influence on the Polish throne.