The primary goal of the United Nations is to promote peace and unity among nations, and by this to prevent World Wars ( and other wars) in the future. The UN establishes and helps maintain friendly relations between countries.
Another aim of the UN is to protect human rights worldwide.