Collective security is the idea that all countries should work together to maintain peace and security, rather than relying on their own military strength or forming alliances with other countries. This concept was embodied by the United Nations which was established in 1945.