The paper presents a method for functionalization of textile materials using fabric dyes modified with silver or zinc oxide nanoparticles. Embedding of these nanoparticles into the structure of other materials makes that the final product is characterized by antimicrobial properties. Indigo and commercially available dye were involved in studies. It is worth to note that silver nanoparticles were obtained in-situ in the reaction of preparing indigo dye and in the process of preparing commercial dye baths. Such a method allows reducing technological steps. The modified dyes were used for dyeing of cotton fibers. The antimicrobial properties of final textile materials were studied. Saccharomyces cerevisiae strain was used in microbiological test. The results confirmed biocidal activity of prepared materials.