1) Germany sunk the Lusitania and other American ships.
Germans knew that the US was supporting the Allies through passenger ships which were loaded with ammunition and other wartime needs.
After a while, Germans decided to apply the "Unrestricted Submarine Warfare" which means to sink every ship they encountered.
Following to this decision, the US warned Germany to withdraw this policy. Germany resisted and this was the one of the biggest reasons why the US entered the war.
2) Germany's allies collapsed and retreated.
After the surrender of Ottoman Empire and Austria-Hungary, there was not much left for Germans.