Militarism is the idea that a country should have a strong military and be prepared to use it.
How did militarism lead to the First World War?
Due to the alliance system, countries grew afraid of being surrounded by hostile states. As a consequence, they increased the size of their armies and navies, which created more fear and led to an arms race.