The establishment of a Polish state can be traced back to 966, when Mieszko I,[12] ruler of a territory roughly coextensive with that of present-day Poland, converted to Christianity. The Kingdom of Poland was founded in 1025, and in 1569 it cemented a longstanding political association with the Grand Duchy of Lithuania by signing the Union of Lublin. This union formed the Polish–Lithuanian Commonwealth, one of the largest and most populous countries of 16th and 17th-century Europe.[13][14] The Commonwealth ceased to exist in the years 1772–1795, when its territory was partitioned among Prussia, the Russian Empire, and Austria. Poland regained its independence (as the Second Polish Republic) at the end of World War I, in 1918.