In the 17th century Sweden attacked all of Poland (this was called “the Deluge”). Many wars against the Ottoman Empire, Russia, Cossacks, Transylvania and Brandenburg-Prussia ended with the Treaty of Karlowitz in 1699. During the following 80 years, the government and natione were weaker, making Poland dependent on Russia. Russian tsars took advantage of this by offering money to traitors, who would block new ideas and solutions. Russia, Prussia, and Austria broke Poland into three pieces in 1772, 1793 and 1795, which dissolved the country. Polish people did not like the new kings, and often rebelled.