The new method of obtaining nanocomposite hydrogels with embedded mineral nanoparticles has been proposed. CdS nanoparticles have been synthesized in situ in hydrogel matrix based on the copolymer of acrylamide and acrylic acid under the conditions of diffusion fluxes of Cd2+ та S2- structure-forming ions. The formation of CdS nanoparticles in polymeric matrix has been approved by the methods of XRD, energy- dispersive analysis, UV-spectroscopy. The influence of the content of polymer matrix onto physico- mechanical properties of hydrogel has been studied.