Here we have 2 components that fight to produce heat.
Friction between match box surface and match stick head lights up fire.
Tip of Match has : potassium chlorate (an oxidant), sulfur, starch, glue and some other ingredients.
Potassium chlorate :
Striking Surface : red phosphorus, powdered glass, and glue.
Red phosphorus :
Well ,whats a an oxidant ?
An oxidizing agent is a chemical that takes electrons from another chemical.
When a chemical loses electrons we say it has been oxidized.
An oxidizing agent is necessary to keep a flame lit.
When a match strikes on striking surface, the heat of the friction causes a reaction between the potassium chlorate in the match head and the red phosphorus in the striking surface.
That way sparks are formed, which finally ignite the match head that continues to burn after that, the friction caused by the glass powder rubbing together produces enough heat to turn a very small amount of the red phosphorus into white phosphorus, which catches fire in air.
The heat and oxygen gas then cause the sulfur to burst into flame, which then catches the wood of the match to catch on fire
We can sum up the chemical equation as :
16KCl3 + 3P4 S3 --> 16 KCl + 9SO2
More reference :
White phosphorus is extremely dangerous and are stored in water ,as they catch fire in air !