Since the end of World War II Germany and national rivalries in Western Europe not been the main threat to Europe. Instead that threat has emanated from outside the EU; largely from Russia, and then from more nebulous threats such as terrorism. In both these cases it has been military alliances such as NATO and nuclear deterrence that have kept the peace.