An antimicrobial composition prepared by mixing a polymer-ammonium salt formulation comprising one or more polymers and one or more ammonium salts with alkali and a chlorine source in a molar ratio of chlorine (as Cl2) to ammonium ion of about 1:10 to about 10:1 and methods of using the composition to control biofouling of aqueous systems.