This is an oxidation-reduction (redox) reaction:
Mg0 - 2 e- → MgII (oxidation)
FeII + 2 e- → Fe0 (reduction)
Mg is a reducing agent, FeO is an oxidizing agent.
Reactants:
Products: