Mg3N2 + 8HCl = 3MgCl2 + 2NH4Cl