Usually the metal nanoparticles are obtained by different chemical reactions that are not environmentally friendly. This paper describes the synthesis of two polyelectrolytes with sulfonate groups in ortho-position and in ortho-and para-positions, which were obtained by chemical modification of chitosan. They were used in the green synthesis of Au and Ag nanoparticles by colloidal method in aqueous solution. Polyelectrolytes were used as reducing agents of Au 31 and Ag 1 ions and as stabilizing agents of Ag and Au nanoparticles. The hydroxyl and imine groups in the polyelectrolytes are reducing agents of Au 31 and Ag 1 ions while the sulfonate groups and the polymer backbone stabilized Au and Ag nanoparticles. Polyelectrolyte 1, which has sulfonate group in ortho-position, favors the obtaining of anisotropic Au nanoparticles with an average size of 19 nm. While the polyelectrolyte 2, with two sulfonate groups in the ortho-and para-positions, yielded quasi-spherical Au nanoparticles with an average size of 14 nm. In general, Ag nanoparticles stabilized with both polyelectrolytes, show quasi-spherical forms with good control in size. Finally, both polyelectrolytes have the ability to protect the Au and Ag nanoparticles allowing obtaining colloidal solutions that are stable for several months.