Germany surrendered in 1945 and was divided and occupied by the Allies. The Potsdam Conference established this division and began de-Nazification efforts. Europe was largely bankrupt after the war while the US and USSR emerged as new superpowers. The Soviets wanted to rebuild the German economy to their benefit while the Americans prioritized self-determination, leading to the origins of the Cold War between them. Japan also surrendered in 1945 after atomic bombs were dropped and was remade under US occupation with a new constitution and demilitarization. These postwar changes established the foundations for the ensuing global Cold War conflict between capitalist and communist ideologies.