Triazoloazepinium bromides act as biocides against sulfate-reducing bacteria and can produce an effect on mild steel microbial corrosion. It has been established that under the competing adsorption, the compounds with the properties of corrosion inhibitors can form a film, which protects the steel surface, before it is settled by corrosively active microorganisms.The protective film ensures the inhibition efficiency of up to 98.7%. With triazoloazepinium bromides of the 2nd group, corrosively active microorganisms colonize the steel surface before the inhibitor creates the protective layer. In this case, the biocorrosion accelerates by up to 6.25 times. Different effect of triazoloazepinium bromides on steel biocorrosion rate is explained by the molecular structure.