To simplify: pure hydrogen (or oxygen) have weak molecular bonds between the molecules, leaving them “willing” to easily bond with other molecules rapidly. They release energy in the process, which sustains the fire by providing energy that breaks more bonds.
However, when they bond with each other in H20, those bonds are very strong, so they don’t break easily to start and sustain a fire.
Latest Answers