Fifty countries signed the United Nations Charter in San Francisco.

The treaty was the ground basis for the United Nations, which is an intergovernmental organization. The UN was officially formed on October 24, 1945.

Source