the deal that was cut at Westphalia invented countries as we know them, which is to say it allowed sovereignty of the state with the ability to make choices within its geographic borders (e.g., their religions, their languages, and all their rules) and instituted respect for those boundaries so that no longer would borderless, free-flowing power grabs occur (without, of course, the understanding that you’d be starting a major war).