As the result of the Thirteen Years' War of 1454-1466, Pomerelia became part of the Crown of the Kingdom of Poland again, within Royal Prussia (the area of which was not identical with the area of Pomerelia, as the province of Royal Prussia included also other regions, such as Chełmno Land, Pomesania and Warmia). After the Partitions of Poland in 1772-1795, historical Pomerelia became part of the new province of West Prussia within the Kingdom of Prussia. Temporarily, during the Napoleonic Wars until 1815, Gdańsk became a Free City, while southern portions of West Prussia with Toruń became parts of the Duchy of Warsaw. Perhaps the earliest census figures (from years 1817 and 1819) about the ethnic or national composition of the region come from Prussian data published in 1823. At that time, entire West Prussia (of which historical Pomerelia was part) had 630,077 inhabitants – 327,300 ethnic Poles (52%), 290,000 Germans (46%) and 12,700 Jews (2%). In this data Kashubians are included with Poles, while Mennonites (numbering 2% of West Prussia's population) are included with Germans.