The present disclosure provides a copolymer comprising monomer units represented by formulas (I) and/or (II) as disclosed and defined herein which are useful in antibacterial and/or antifouling coatings. The present disclosure further provides methods of synthesizing said copolymers.