In this work, a novel stimuli-responsive p(EPMA-co-AMPS) hydrogels containing 2,3-epoxypropylmethacrylate and 2-acrylamido-2-methyl-1-propanesulfonic acid were prepared through free radical copolymerization. In addition to the swelling properties of the obtained hydrogels, surface morphology, chemical and mechanical properties are fully characterized using SEM, FTIR and TPA. Firstly, resulted hydrogels were carried out for removal of cationic dyes from aqueous solution in environmental applications. The adsorption isotherms and kinetics of hydrogels were in good agreement with Langmuir equation and the pseudo-second-order equation, respectively. In addition, the adsorption capacity of p(EPMA-co-AMPS) hydrogels compete with other currently reported adsorbents. Secondly, the use of hydrogel for controlled drug release studies in biomedical applications has been investigated as a drug carrier. Finally, drug-loaded hydrogels were tested for antibacterial activities against Gram‐positive bacteria (Bacillus cereus) and Gram‐negative bacteria (Salmonella typhimurium) and demonstrated antibacterial activity. Results obtained from this study suggest that the resulted hydrogel could be promising materials for various applications.