Several hydrogels based on 2-hydroxyethyl methacrylate and a methacrylic monomer containing a thiazole group in its lateral chain have been prepared by thermal polymerization at 60 °C in water solution varying the chemical composition of the gels. The posterior quaternization of the thiazole groups with methyl iodine has rendered positively charged hydrogels with potential antimicrobial activity. This modification has been structurally characterized by infrared spectroscopy, whereas the thermal stability of all hydrogels has been studied by thermal degradation in inert atmosphere. The swelling behavior in distilled water and the rheology of the different hydrogels have been analyzed as a function of 2-(4-methylthiazol-5-yl)ethyl methacrylate (MTA) monomer content as well as its methylation. Finally, the active character of hydrogels against Gram-positive and Gram-negative bacteria and fungi has been evaluated, revealing excellent antimicrobial activity against all tested microorganisms. The methylated hydrogels could be used as potential materials for wound healing or contact lens applications.