A series of new mono-1,2,3-triazole derivatives of pyrimidine nucleobases were synthesized by one-pot copper(I)-catalyzed 1,3-dipolar cycloaddition reactions between N-1-propargyluracil and thymine, sodium azide and several benzyl halides. The desired heterocyclic compounds were obtained in good yields and characterized by NMR, IR, and high resolution mass spectrometry. These compounds were investigated as corrosion inhibitors for steel in 1 M HCl solution, using electrochemical impedance spectroscopy (EIS) technique. The results indicate that these heterocyclic compounds are promising acidic corrosion inhibitors for steel.