The process of rapid oxidation, along with expansion, friction, and heat. A gaseous ball of vapors and gas will quickly burn, and expand faster than the speed of sound, hence the loud bang created by the air pressure collapsing back into the vortex created by the expansion. All mixed together this makes for a cool looking thing that can hurt people, destroy stuff, and just be cool.