Bacteria infection is a growing problem all over the world. Within this contribution, phosphonium-phosphonic acid or hexyl pyridinium-phosphonic acid bearing copolymer series derived via ring opening metathesis polymerization (ROMP) method are synthesized to investigate their biocidal activity on the glass surface. The presence of phosphonic acid moieties enhanced the coating capability on the iron oxide nanoparticles and the thermal properties of the copolymers. Biocidal activities of the polymers and iron oxide bearing polymers were tested against E.coli and S.aureus. Polymers possessing higher activity was then blended with commercial polyacrylonitrile for the nanofiber formation via electrospinning methods.