This defeat prompted Tsar Peter I to reform and modernize the Russian military, eventually leading to his victory over Sweden at the Battle of Poltava in 1709, which marked the decline of the Swedish Empire and the rise of Russia as a major European power.