In 1914 the Triple Entente of Great Britain, France, and Russia goes to war against the Triple Alliance of Germany, Austria-Hungary, and Italy. The United States stays neutral until German attacks on American shipping convince President Woodrow Wilson to ask Congress, in 1917, for a declaration of war. The Senate passes the war resolution by a vote of 82 to 6 on April 4, and the House by a vote of 373 to 50 on April 6. Entry of U.S. forces into the conflict tips the balance against Germany, which accepts an armistice in November 1918. The Senate twice defeats the Treaty of Versailles. But, the Senate finally approves a treaty with Germany that formally ends the war in 1921.