The peninsula became part of the Duchy of Prussia when Albert of Brandenburg-Ansbach, the 37th Grand Master, was forced to secularize the Monastic State of the Teutonic Knights in 1525 and became the vasal duchy of the Kingdom of Poland. The Margraviate of Brandenburg inherited the duchy in 1618.