The main tenets of the Peace of Westphalia, which ended the Thirty Years' War, were: