After the failure of the Austrian invasion of Saxony, Hamilton left Neuruppin on 10 October and headed for the River Oder, in the hopes of joining up with the Russians. He failed in this and the Swedish force had to go into winter quarters, with Hamilton returning to Swedish Pomerania. The government blamed him for the force's failure and pressured him into resigning his command, which Hamilton did on 23 November 1758. Hamilton was replaced as commander on 19 December the same year with Jacob Albrecht von Lantingshausen.