Novel surfactants were synthesized based on corn oil and diethanolamine and its inhibiting action on the corrosion of mild steel in CO2-saturated NaCl solutions was investigated by means of linear polarization resistance corrosion rate and polarization methods The results revealed that the investigated surfactants were an excellent inhibitors and the inhibition efficiencies obtained from two methods were in good agreement. The maximum inhibition efficiency was observed for inhibitor II (99.5 at 50 ppm). Polarization studies clearly revealed that the surfactants acted essentially as the mixed-type inhibitor. Thermodynamic parameters were obtained from polarization studies, which suggested that the adsorption of studied surfactants on metal surface obeyed Langmuir adsorption isotherm model