The treaty formally ended the Second World War. The Allies of World War II gave up the powers and duties they had had in the two Germanys and in Berlin since the Nazi Surrender in 1945 stopped the fighting in World War II.