Little attention has been paid to the nano-TiO2 as corrosion inhibitor before. In this paper, Myristic acid-modified nano-TiO2 (MA-TiO2) were synthesized by Myristic acid and tetrabutyl titanate via the sol-gel method, and it was characterized by IR and TEM. MA-TiO2 was dispersed in oil, and used as a corrosion inhibitor. From the Tafel plots and EIS spectra, we can know that the values of the current densities decreased by the addition of MA-TiO2. Because of the MA-TiO2 formed a deposition layer in the surface of 45# carbon steel panels, the current density of the the base oil with MA-TiO2 is much smaller than the base oil. The inhibition efficiency was over 90% with added 5 wt % TiO2.