I believe the answer is: Both chemical weapons and machine guns helped to create a stalemate on the Western Front.
At that time, Allies almost won the battle on the Western front, until the German millitary started to use chemical weapons such as phosgene, chlorine, and mustard gas. Combined with a more advanced machine guns, the German army managed to save themselves from defeat and bring the battle into a stalemate.