After the end of World War I in 1918, Polish statehood was restored. Amidst an atmosphere of ethnic unrest, a referendum was organized to determine the future national affiliation of Upper Silesia. Although an overall majority had opted for Germany, the area was divided in an attempt to satisfy both parties. Although both parties considered the territory they were assigned insufficient, the division was justified insofar as in the German and Polish parts a majority had voted in favour of the respective nation.