Answer
Charles XII's supporter, the Swedish king, was defeated at the Battle of Poltava in 1709, which weakened Stanisław's position and ultimately led to his dethronement. This defeat marked a turning point in the Great Northern War and diminished Sweden's influence in the region, paving the way for Russia's growing power and dominance in Eastern Europe.