The United Nations (UN) is an intergovernmental organization whose stated purposes are to maintain international peace and security, develop friendly relations among nations, achieve international cooperation, and be a centre for the actions of nations. It is the world's largest and most familiar international organization. The UN is headquartered on international territory in New York City, and has other main offices in Geneva, Nairobi, Vienna, and The Hague (home to the International Court of Justice). The UN was established after World War II with the aim of preventing future world wars, succeeding the League of Nations, which was characterized as ineffective. In the year 1945, 50 governments met in San Francisco for a conference and started drafting the UN Charter, which was adopted in 1945 and took effect In 1945, when the UN began operations. Pursuant to the Charter, the organization's objectives include maintaining international peace and security