Following several defeats, Polish King Augustus II the Strong abdicated in 1706. Swedish king Charles XII turned his attention to Russia, invading it in 1708. After crossing into Russia, Charles defeated Peter at Golovchin in July. In the Battle of Lesnaya, Charles suffered his first loss after Peter crushed a group of Swedish reinforcements marching from Riga. Deprived of this aid, Charles was forced to abandon his proposed march on Moscow.