 An attack on one would be treated as an attack on all. And it's worked because a would-be aggressor knows if they attack one of us, they'll be attacked by all of us. Sending that message is the best way to deter aggression and prevent wars in the first place. For those who thought NATO's time had passed, they got a rude awakening when Putin invaded Ukraine.