In 1515, Holy Roman Emperor Maximilian I made a marriage alliance with Sigismund I of Poland-Lithuania. Thereafter, the empire did not support the Order against Poland. In 1525, Grand Master Albert of Brandenburg resigned and converted to Lutheranism, becoming Duke of Prussia as a vassal of Poland. Soon after, the Order lost Livonia and its holdings in the Protestant areas of Germany. The Order did keep its considerable holdings in Catholic areas of Germany until 1809, when Napoleon Bonaparte ordered its dissolution and the Order lost its last secular holdings.