Kosciuszko's insurgent armies, who fought to regain Polish territory, won some initial successes but they eventually fell before the forces of the Russian Empire. The partitioning powers, seeing the increasing unrest in the remaining Commonwealth, decided to solve the problem by erasing any independent Polish state from the map. On 24 October 1795 their representatives signed a treaty dividing the remaining territories of the Commonwealth between their three countries.