After the coalition attacked them, Sweden invaded Russia in 1709 which was not a good idea. The Russian Army retreated so the Swedish Army had to chase them. When winter came it was the coldest winter that Europe had had in a hundred years and half of the Swedish soldiers died in the cold. Eventually the Swedish army caught up to the Russian army and they had a battle, called the battle of Poltava. Russia won the battle but most of the Swedish soldiers, including king Charles XII of Sweden, escaped and went to the Ottoman Empire. Peter didn't like this so he declared war on the Ottoman Empire. He lost and had to give the town of Azov back to the Ottomans.