World War I began in 1914 and the United States entered in 1917 in response to German submarine warfare and an intercepted telegram proposing a German-Mexican alliance against America. The war was fought largely in trenches and led to massive casualties before ending in 1918. The Treaty of Versailles imposed harsh terms on Germany, sowing discontent. In the 1920s, the U.S. experienced economic boom but the stock market crash of 1929 plunged the country into the Great Depression. Franklin Roosevelt responded with his New Deal programs to provide relief, recovery, and reform through new agencies and public works.