A new cationic surfactant was prepared and examined as an inhibitor for the corrosion of carbon steel in 1.0 M HCl solution using weight loss measurements, electrochemical impedance spectroscopy (EIS) and potentiodynamic polarization measurements. The chemical structure of the prepared cationic surfactants has been proven by FTIR spectra. The inhibiting effect of the cationic surfactant as a result of the formation of the protective layer adsorbed on the carbon steel surface The adsorption of the inhibitor was discussed accordingly to the Langmuir isotherm. Polarization data indicated that the cationic surfactant is a mixed-type inhibitor.. The effect of temperature on the corrosion rate of carbon steel in1. 0 M HCl solution devoid of and containing the novel cationic surfactant was examined and thermodynamic parameters were computed. Some surface parameters were calculated and explained.