It might look like striking a match creates a flame automatically, but there's a chemical process going on. The fascinating UltraSlo YoutTube account filmed it happening at 4,000 frames per second.
The head of a match is made from sulphur, glass powder and an oxidising agent. The would explain the white bubbling weird stuff.