Ammonolysis can be used to synthesize nitrides (and oxynitrides) by reacting various metal precursors with ammonia, some options include chemical vapor deposition, treating metals or metal oxides with ammonia gas, or liquid supercritical ammonia (also known as "ammonothermal" synthesis, analogous to hydrothermal synthesis).
The products of these reactions may be complex, with mixtures of oxygen, nitrogen, and hydrogen that can be difficult to characterize.