At the outbreak of World War I in 1914, the United States remained neutral. Most Americans sympathized with the British and French, although many opposed intervention.In 1917, the United States joined the Allies, helping to turn the tide against the Central Powers. After the war, the Senate did not ratify the Treaty of Versailles, which established the League of Nations. The country pursued a policy of unilateralism, verging on isolationism.In 1920, the women's rights movement won passage of a constitutional amendment granting women's suffrage. The prosperity of the Roaring Twenties ended with the Wall Street Crash of 1929 that triggered the Great Depression. After his election as president in 1932, Franklin D. Roosevelt responded with the New Deal, a range of policies increasing government intervention in the economy. The Dust Bowl of the mid-1930s impoverished many farming communities and spurred a new wave of western migration.

The United States, effectively neutral during World War II's early stages after Nazi Germany's invasion of Poland in September 1939, began supplying materiel to the Allies in March 1941 through the Lend-Lease program. On December 7, 1941, the Empire of Japan launched a surprise attack on Pearl Harbor, prompting the United States to join the Allies against the Axis powers as well as the internment of Japanese Americans by the thousands.Participation in the war spurred capital investment and industrial capacity. Among the major combatants, the United States was the only nation to become richer—indeed, far richer—instead of poorer because of the war. Allied conferences at Bretton Woods and Yalta outlined a new system of international organizations that placed the United States and Soviet Union at the center of world affairs. As victory was won in Europe, a 1945 international conference held in San Francisco produced the United Nations Charter, which became active after the war.The United States, having developed the first nuclear weapons, used them on the Japanese cities of Hiroshima and Nagasaki in August. Japan surrendered on September 2, ending the war.