Mg + 2NH4Cl ===MgCl2 + 2NH3↑ + H2↑