Militarism , Alliances and Imperialism are the cause of World War I. liberalism is not the cause of World War I.
Nations were building armies in the belief that the strongest military force would own the world or at least have the most control.
Nations pledged to back and defend their loyal countries if they were being attacked by rival forces.
Nations had requested for worldwide nations to help fight for them. Everyone went to war, everyone jumped in.