The chemical equation for this reaction is:
C + O2 → CO2
This is a combustion reaction, which releases heat and light.