As soon as Denmark was out of the war, Charles XII speedily embarked his armies and headed from Denmark to his Baltic dominions. Russian forces entered Ingria and laid siege to Narva in October, while August the Strong was preparing winter quarters in Livonia. On 30 November, Charles XII's army relieved Narva before turning south sweeping August the Strong's forces out of Livonia, pursuing and decisively defeating them at Kliszow and Fraustadt during the following years, forcing August to drop out of the war in the Treaty of Altranstädt in 1706. The tide turned only in 1709, when Charles XII's last remaining adversary Peter the Great was able to crush his army at Poltava and exile the Swedish king to Bender in the Ottoman Empire. Denmark and Saxony then abandoned Travendal and Altranstädt and entered the war again.