This is an oxidation-reduction (redox) reaction:
SiIV + 8 e- → Si-IV (reduction)
4 Mg0 - 8 e- → 4 MgII (oxidation)
SiO2 is an oxidizing agent, Mg is a reducing agent.
Reactants:
Products: