Not surprisingly, the leaders of the European states that emerged from the Peace of Westphalia, which ended the wars, were enthusiastic about the idea of developing national codes of law, viewing them as aids to unifying their territories and limiting the power of local lords and judges.