The inhibition effect of two pyrimidine derivatives on the corrosion of austenitic stainless steel in 1?M HCl has been studied by Tafel plot, linear polarization, and electrochemical impedance spectroscopy (EIS) at 298?K. Results showed that compounds inhibited steel corrosion in a 1?M HCl solution and inhibition efficiencies increased with the concentration of inhibitor. Polarization curves indicated that all studied pyrimidine derivatives act as mixed type (cathodic/anodic) inhibitors. The adsorption of the inhibitors on the stainless steel surface was found to obey the Langmuir and DubininRadushkevich adsorption isotherm models. Negative values of ?Gads in the acidic media ensured the spontaneity of the adsorption process.