Answer
Perhaps the best example of how imperialism was a cause of World War 1 is when, in 1908, Austria-Hungary annexed Bosnia and Herzegovina which were former territories of the Ottoman Empire. This caused great protest from several European countries and Austria-Hungary's neighbor Serbia.