World War II, or the Second World War (often abbreviated as WWII or WW2), was a global war that was under way by 1939 and ended in 1945. It involved a vast majority of the world's nations—including all of the great powers—eventually forming two opposing military alliances: the Allies and the Axis. It was the most widespread war in history, with more than 100 million people serving in military units. In a state of "total war", the major participants placed their entire economic, industrial, and scientific capabilities at the service of the war effort, erasing the distinction between civilian and military resources. Marked by significant events involving the mass death of civilians, including the Holocaust and the only use of nuclear weapons in warfare, it resulted in 50 million to over 70 million fatalities. These deaths make the war the deadliest conflict in human history.
Although Japan was already at war with China in 1937, the world war is generally said to have begun on 1 September 1939, with the invasion of Poland by Germany, and subsequent declarations of war on Germany by France and most of the countries of the British Empire and Commonwealth. Germany set out to establish a large empire in Europe. From late 1939 to early 1941, in a series of campaigns and treaties, Germany conquered or subdued much of continental Europe; amid Nazi-Soviet agreements, the nominally neutral Soviet Union fully or partially occupied and annexed territories of its six European neighbours, including Poland. Britain and the Commonwealth remained the only major force continuing the fight against the Axis, with battles taking place in North Africa as well as the long-running Battle of the Atlantic. In June 1941, the European Axis launched an invasion of the Soviet Union, giving a start to the largest land theatre of war in history, which tied down the major part of the Axis' military forces. In December 1941, Japan, which aimed to dominate Asia, attacked the United States and European possessions in the Pacific Ocean, quickly conquering much of the West Pacific.
The Axis advance was stopped in 1942, after Japan lost a series of naval battles and European Axis troops were defeated in North Africa and, decisively, at Stalingrad. In 1943, with a series of German defeats in Eastern Europe, the Allied invasion of Fascist Italy, and American victories in the Pacific, the Axis lost the initiative and undertook strategic retreat on all fronts. In 1944, the Western Allies invaded France, while the Soviet Union regained all of its territorial losses and invaded Germany and its allies. The war in Europe ended with the capture of Berlin by Soviet and Polish troops and the subsequent German unconditional surrender on 8 May 1945. During 1944 and 1945 the United States defeated the Japanese Navy and captured key west pacific islands, and the invasion of the Japanese Archipelago ("Home Islands") became imminent. The war in Asia ended on 15 August 1945 when Japan agreed to surrender.
The war ended with the total victory of the Allies over the Axis in 1945. World War II altered the political alignment and social structure of the world. The United Nations (UN) was established to foster international cooperation and prevent future conflicts. The Soviet Union and the United States emerged as rival superpowers, setting the stage for the Cold War, which lasted for the next 46 years. Meanwhile, the influence of European great powers started to decline, while the decolonisation of Asia and Africa began. Most countries whose industries had been damaged moved towards economic recovery. Political integration, especially in Europe, emerged as an effort to stabilise postwar relations.