In the 17th century Sweden attacked almost all of Poland (this was called “the Deluge”). Many wars against the Ottoman Empire, Russia, Cossacks, Transylvania and Brandenburg-Prussia ended in 1699. For the next 80 years, the government and the nation were weak, making Poland dependent on Russia. Russian tsars took advantage of this by offering money to dishonest members of the Polish government, 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. Before the second split, a Constitution called "The Constitution of 3 May" was made in 1791. The Polish people did not like the new kings, and often rebelled (two big rebellions in 1830 and 1863).