New polymer-bioactive compound systems were obtained by immobilization of triazole derivatives onto grafted copolymers and grafted copolymers carrying betaine units based on gellan and N-vinylimidazole. For preparation of bioactive compound, two new types of heterocyclic thio-derivatives with different substituents were combined in a single molecule to increase the selectivity of the biological action. The 5-aryl-amino-1,3,4 thiadiazole and 5-mercapto-1,2,4-triazole derivatives, each containing 2-mercapto-benzoxazole nucleus, were prepared by an intramolecular cyclization of thiosemicarbazides-1,4 disubstituted in acidic and basic medium. The structures of the new bioactive compounds were confirmed by elemental and spectral analysis (FT-IR and 1H-NMR). The antimicrobial activity of 1,3,4 thiadiazoles and 1,2,4 triazoles was tested on gram-positive and gram-negative bacteria. The triazole compound was chosen to be immobilized onto polymeric particles by adsorption. The Langmuir, Freundlich, and Dubinin–Radushkevich adsorption isotherm were used to describe the adsorption equilibrium. Also, the pseudo-first and pseudo-second models were used to elucidate the adsorption mechanism of triazole onto grafted copolymer based on N-vinylimidazole and gellan (PG copolymer) and grafted copolymers carrying betaine units (PGB1 copolymer). In vitro release studies have shown that the release mechanism of triazole from PG and PGB1 copolymers is characteristic of an anomalous transport mechanism.