 With the forced abdication of Emperor Wilhelm II in 1918, Germany became a republic.Most of West Prussia and the former Prussian Province of Posen, territories annexed by Prussia in the 18th century Partitions of Poland, were ceded to the Second Polish Republic according to the Treaty of Versailles.East Prussia became an exclave, being separated from mainland Germany.