This is an oxidation-reduction (redox) reaction:
2 NV + 4 e- → 2 NIII (reduction)
2 O-II - 4 e- → 2 O0 (oxidation)
Mg(NO3)2 is an oxidizing agent, Mg(NO3)2 is a reducing agent.
Reactants:
Products: