Militarism, alliances, imperialism, and nationalism played major roles in the conflict.