The United Nations was created in 1945 to replace the League of Nations. It was formed by countries that signed the Declaration of United Nations in 1942, pledging to cooperate and not make separate peace agreements with Axis powers. The UN has six main organs: the General Assembly, Security Council, Economic and Social Council, Secretariat, International Court of Justice, and originally the Trusteeship Council. The UN aims to maintain international peace and security, protect human rights, and promote economic development and humanitarian aid.