When war broke out in Europe in August 1914, President Woodrow Wilson declared that the United States would follow a policy of neutrality, refusing to take sides in a war between other nations. Neutrality did not mean equal treatment in trade, however. Britain's navy set up a blockade, using warships to cut off Germany's ports, so most American goods could not reach Germany. Meanwhile, American sales to Britain and France soared, and American banks lent the Allies huge sums. By 1917, the United States was neutral in law but bound by trade to one side.
Germany struck back with U-boats, or submarines. In May 1915, a U-boat sank the British passenger ship Lusitania, killing nearly 1,200 people, including 128 Americans. Under American pressure, Germany promised in 1916 to stop sinking passenger and merchant ships without warning. In early 1917, Germany broke that promise and began unrestricted submarine warfare, attacking any ship, even a neutral one, in wide war zones around Britain and its allies. Americans then learned of the Zimmermann Telegram, a secret German offer to help Mexico regain Texas, New Mexico and Arizona if it joined a war against the United States, and anger at Germany grew. In April 1917, Congress declared war on Germany.
The army needed millions of men quickly. In May 1917, Congress passed the Selective Service Act, which created conscription, a system that requires men to serve in the military. About 24 million men registered, and about 2.8 million were drafted. To build support at home, Wilson created the Committee on Public Information, led by the journalist George Creel. Its propaganda, information spread to shape public opinion, often in a one-sided way, urged Americans to buy Liberty Bonds, loans that citizens made to the government to pay for the war, and to save food and fuel.
The government also restricted dissent, or open disagreement with its policies. The Espionage Act of 1917 made it a crime to interfere with the draft or to aid the enemy. The Sedition Act of 1918 went further. Sedition means speech or action that urges people to resist or overthrow the government, and the new law made it a crime to criticize the government, the Constitution, the flag or the military in words that officials judged disloyal. Eugene V. Debs, leader of the Socialist Party, was sentenced to ten years in prison for an antiwar speech in 1918. In 1919, the Supreme Court ruled that in wartime the government could punish speech that created an immediate threat, such as leaflets urging drafted men to oppose the draft. In practice, wartime loyalty came to mean not only obeying the law but also keeping quiet about doubts.
The war also changed where Americans lived and worked. Immigration from Europe nearly stopped, and millions of men left their jobs for the military. Northern factories needed workers, and recruiters and Black newspapers urged Black Southerners to come north. Hundreds of thousands moved to cities such as Chicago, Detroit, New York and Philadelphia during the war years, part of the Great Migration, a movement of Black Americans out of the South that lasted for decades. Migrants hoped for better pay and an escape from segregation and lynching, but many found crowded housing, job discrimination and, in some cities, attacks by white mobs. Women also took factory and railroad jobs that men had left, and their war work strengthened the case for women's right to vote.
In 1918, a pandemic, an outbreak of disease that crosses many countries, swept through army camps and cities. The influenza of 1918 took the lives of an estimated 675,000 Americans. Around the world, the death toll was at least 50 million. Disease, especially influenza, killed more American service members than combat did. The fighting ended with an armistice, an agreement to stop fighting, on November 11, 1918. About 116,000 Americans in uniform had died.