against Germany citing unrestricted submarine warfare and the Zimmerman Telegram in which Germany tried to persuade Mexico to join the war against the U.S. Later that same year, December 7, 1917 declared against German ally, Austria Hungary. Formally ended for U.S. with separate peace treaties with Germany, Austria and Hungary in 1921.