What happens when a match is lit?
Matches contain sulfur, glass powder, and an oxidizing agent as the components in the match head. When you strike a match, the friction due to the particles of glass powder rubbing together generates enough heat to convert some of the red phosphorous to white phosphorous, which burns in the presence of oxygen gas. The heat from the friction also causes the oxidizing agent to produce oxygen gas, igniting the small amount of white phosphorous. Once ignited, the oxygen gas fuels the flame while the rest of the sulfur catches on fire. Of course, this entire process happens in a fraction of a second. At this point, the entire match head is on fire, so the oxygen in the air keeps the flame going while the rest of the match burns.