The prepared biocidal polymers are water-insoluble; therefore, they can be used safely in sterilizing drinking water and many other applications, such as disinfecting water supplies, swimming pools, hot-tubs, industrial water systems, and other applications where a sanitized water supply is required.