After Poland regained independence following World War I and the 123 years of partitions, a long German-Polish border was settled on, long (including a border with East Prussia). The border was partially shaped by the Treaty of Versailles and partially by plebiscites (East Prussian plebiscite and the Silesian plebiscite, the former also affected by the Silesian Uprisings). The shape of that border roughly resembled that of pre-partition Poland.