The Treaty of Versailles (1919) formally ended World War I, which had ravaged Europe from 1914-1918. The treaty established the League of Nations and imposed heavy reparations and territorial losses on Germany. World War II ended with different treaties in 1945.