Interaction of intermetallic compounds with ammonia was studied as a processing route to synthesize hydrides and hydridonitrides of intermetallic compounds having various stoichiometries and types of crystal structures, including A(2)B, AB, AB(2), AB(5) and A(2)B(17) (A = Mg, Ti, Zr, Sc, Nd, Sm; B = transition metals, including Fe, Co, Ni, Ti and nontransition elements, Al and B). In presence of NH4Cl used as an activator of the reaction between ammonia and intermetallic alloys, their interaction proceeds at rather mild P-T conditions, at temperatures 100-200 degrees C and at pressures of 0.6-0.8 MPa. The mechanism of interaction of the alloys with ammonia appears to be temperature-dependent and, following a rise of the interaction temperature, it leads to the formation of interstitial hydrides; interstitial hydridonitrides; disproportionation products (binary hydride; new intermetallic hydrides and binary nitrides) or new metal-nitrogen-hydrogen compounds like magnesium amide Mg(NH2)(2). The interaction results in the synthesis of the nanopowders where hydrogen and nitrogen atoms become incorporated into the crystal lattices of the intermetallic alloys. The nitrogenated materials have the smallest particle size, down to 40 nm, and a specific surface area close to 20 m(2)/g. (C) 2015 Elsevier B.V. All rights reserved.