The Thirty Years' War ended in 1648 with the Peace of Westphalia, which established new political boundaries and order in Europe. It affirmed that German princes could determine the religion of their territories and nullified the Edict of Restitution. The Peace of Westphalia also established the sovereignty of states and non-intervention in other states' internal affairs, forming the basis of the modern international system. The war left Germany fragmented politically and economically weakened, while France emerged as the dominant power in Europe.