In January 1793 a Prussian corps entered Greater Poland, it was not as a Commonwealth ally but instead to guarantee Prussia's share of spoils in the Second Partition of Poland. Prussian forces were acting in support of the Prussian-Russian Treaty on the partition that month. Prussian forces later assisted Russians in several key battles of the Kościuszko Uprising, such as in the defeat of Tadeusz Kościuszko's forces at the Battle of Szczekociny. By 1795, Commonwealth would cease to exist, with Prussia acquiring Gdańsk, Toruń and other territories that it had desired (see Prussian partition).