Ion exchange synthesizes layered polymorphs of MgZrN
2 and MgHfN
2, two metastable semiconductors
Using Li$_2$ZrN$_2$ as a precursor, Li$^+$ and Mg$^{2+}$ undergo topochemical ion exchange that preserves the octahedral [ZrN$_6$] layers, yielding a metastable layered polymorph of MgZrN$_2$ (space group $R\overline{3}m$) rather than the calculated ground state. The material exhibits an optical absorption onset near 2.0 eV, consistent with its calculated bandgap. The method extends to synthesize MgHfN$_2$ from Li$_2$HfN$_2$, highlighting the potential of Li-M-N phases as precursors for new ternary nitrides.