Question: how mg3n2 is formed during heating?
Answer: Chemistry. Magnesium nitride reacts with water to produce magnesium hydroxide and ammonia gas, as do many metal nitrides. In fact, when magnesium is burned in air, some magnesium nitride is formed in addition to the principal product, magnesium oxide.