What was the aim and common factor that caused the countries to join the United Nations?

The aim of the United Nations is to maintain international peace and security, promote social progress, protect human rights, and uphold international law. The common factor that caused countries to join the United Nations is the desire to work together with other nations to address global challenges and ensure a more peaceful and prosperous world for all.