 In the 16th century, the Protestant Reformation was starting to take hold in the state, under the influence of the Duchy of Brunswick-Lüneburg.Minden was occupied by Sweden in the Thirty Years' War, and was secularized.The Peace of Westphalia of 1648 gave it to the Margraviate of Brandenburg as the Principality of Minden ().