Answer:
The Treaty of Versailles of 1919 that ended World War I restored the independence of Poland, known as the Second Polish Republic, and Germany was compelled to cede territories to it, most of which were taken by Prussia in the three Partitions of Poland, and had been part of the Kingdom of Prussia and later the German .