The article deals with the question of the statistical attraction of chemical compounds that have an antibacterial effect and belong to various groups (terpenoids, phenols, flavonoids, quinones, alkaloids, lactones, coumarins, iridoids, xanthones) to the same types of plants. To assess the occurrence of species containing an antibacterial compound of a certain group in a set of species containing an antibacterial compound of another group (in comparison with the species of the flora of the Russian Federation outside this set), the student’s mathematical and statistical criterion was used. It is shown that in 12 combinations of groups ("terpenoids-phenols", "terpenoids-flavonoids", "terpenoids-quinones", "terpenoids-coumarins", "phenols-flavonoids". "Phenols-quinones", "phenols-coumarins", "flavonoids-coumarins", "flavonoids-iridoids", "flavonoids-xanthones", "lactones-coumarins") the occurrence of species containing an antibacterial compound related to one element of the combination is significantly increased in the set of species containing an antibacterial compound related to another element. It is noted that these statistical relationships are created by species belonging to 19 families of the flora of the Russian Federation (Iridaceae, Ranunculaceae, Chenopodyaceae, Ericaceae, Pyrolaceae, Salicaceae, Brassicaceae, Moraceae, Crassulaceae, Rosaceae, Fabaceae, Apiaceae, Valerianaceae,Viburnaceae,Rubiacae,Gentianaceae, Scrophulariaceae, Lamiaceae, Asteracaeae).