The war led to the discrediting and dissolution of the League of Nations and to the founding of the United Nations (UN) on 24 October 1945. Like its predecessor, the UN was established to help prevent world wars and contain or stop smaller conflicts. The principles enshrined in the Charter of the United Nations are a testament to the world's attitudes at the fall of the Third Reich.