The United Nations was formed in 1945 after World War II to promote international cooperation and prevent future conflicts. It was established officially on October 24, 1945 and is headquartered in New York City. The UN has 193 member states and works to maintain peace and security, protect human rights, deliver humanitarian aid, promote sustainable development, and uphold international law.