After several decades of prosperity, it entered a period of political, military and economic decline. It ended with the final Partitions of Poland in 1795. Its growing weakness led to it being divided by its more powerful neighbors, Austria, Prussia and the Russian Empire.