The results of a research of the properties, structure, and formation mechanisms of metallic magnesium and silver nanoparticles obtained by ion implantation in LiF, NaCl, KCl, and KBr crystals. The crystal samples were irradiated with accelerated Mg+ ions, with the mean energy of ~80 keV, the mean ion current density of ~4 μA/cm2 produced with a small-sized ion implanter. Dose ranges from 2.2×1016to 7.5×1016 ion/cm2. Comparison of the optical properties of crystals implanted with magnesium and silver ions shows a significant superiority of the optical characteristics in the case of implantation with magnesium ions.