An efficient synthetic route to a series of substituted 2-aminopyrimidine (2-AP) derivatives has been developed. Subsequent biofilm screening has allowed comparison between the biological activity of these new derivatives and that of the 2-aminoimidazole class of anti-biofilm compounds. Several derivatives displayed the ability to modulate bacterial biofilm formation, exhibiting greater activity against Gram-positive strains than Gram-negative strains. Additionally some 2-aminopyrmidines were able to suppress MRSA resistance to conventional antibiotics.