Following World War III, why did nations create alliances like NATO around the globe?

Nations created alliances like NATO around the globe following World War III in order to strengthen defense and security cooperation among member countries, deter aggression from adversaries, promote stability and peace in regions, and facilitate collaborative efforts in responding to global security challenges. The alliances were seen as a way to increase military and strategic coordination, enhance military capabilities, and provide mutual support and assistance in times of crisis. By forming alliances, nations aimed to promote peace and security through collective security measures and ensure a united front against common threats.