World War I was caused by rising tensions between nations due to alliances, nationalism, imperialism, and militarism. The assassination of Archduke Franz Ferdinand led Austria-Hungary to declare war on Serbia, drawing in allies on both sides. The war quickly escalated into a global conflict as the opposing alliances of the Triple Entente and Central Powers mobilized troops and resources. Trench warfare ensued as the war became a stalemate, with millions of casualties. The United States entry into the war in 1917 on the side of the Allies helped shift momentum, and Germany's defeat in 1918 brought an end to the devastating four-year global conflict.