In the study the biocidal activity and the corrosion inhibitor activity of 2-aminopyrimidines on growth of Desulfotomaculum sp. B2-1 and B2-2 strains and biocorrosion of X65 steel in 63a medium were determined. For this purpose 4 synthetic compounds (2-amino-4-chloro-6-methylpyrimidine (AMP1), 2-amino-4-chloro-6-morpholinepyrimidine (AMP3), 2-amino-4-chloro-6-(4-methylpiperazine-1-yl) pyrimidine (AMP8), 2-amino-4-morpholine6-methylpyrimidine (AMP11)) were tested for biocidal activity on Desulfotomaculum sp. Corrosion experiment system were prepared with standard corrosion cell were incubated at 30 degrees C in incubator for bacterial growth. Electrochemical Impedance Spectroscopy (EIS) and potentiodynamic polarization methods were used to identify corrosion with CH Instruments 660B. The AMP1 and AMP3 compounds reduced the growth of Desulfotomaculum sp. at 25 mg L-1 concentration. Moreover, these synthetic compounds reduced the biocorrosion of X65 steel by B2-1 strain 95% and 91% for AMP1 and AMP3 sequentially.