The present disclosure relates to a compound that has biocidal activity or is a precursor of a compound with biocidal activity. The compound comprises an N-halamine precursor, at least one quaternary ammonium and at least one coating-incorporation group (CIG). In some embodiments of the present disclosure, the compound may be incorporated into a coating formulation. The coating formulation comprises the compound and at least one further component. In some embodiments of the present disclosure, the CIG reacts with the further component of the coating formulation to incorporate the compound into the coating formulation. In some embodiments, the coating formulation comprises a polymer. In some embodiments, the CIG of the compound reacts with the further component to incorporate the compound into the polymer of the coating formulation. The coating formulation may be used to coat a substrate. The coated substrate may demonstrate biocidal activity or the potential for increased biocidal activity.