Because the Duchy of Prussia failed to fulfill its feudal obligations as a vassal of Poland during the Polish–Swedish wars, George William's rule in Prussia was suspended in 1635 and he was replaced by the Polish king by a viceroy, Jerzy Ossoliński. However, under the Treaty of Sztumska Wieś the Duchy (and so the Sambia peninsula) was given back to Georg William. In 1701 Hohenzollern ruler proclaimed the Kingdom of Prussia and Sambia became part of the Province of East Prussia in 1773. (The Kingdom of Prussia completed the unification of Germany by setting up the German Empire in 1871.) After World War I Sambia formed part of the East Prussian province of Weimar Germany.