Imperialism, nationalistic pride and mutual alliances all played a part in building tensions that would erupt into war. World War I, which lasted from 1914 until 1918, introduced the world to the horrors of trench warfare and lethal new technologies such as poison gas and tanks.