Four enaminoesters derived from halogenated aniline, with potential anticorrosion activity, were synthesized and tested against carbon steel AISI 1020 in acid medium using 1.0 mol L-1 HCl. The synthesis was demonstrated through the reaction of ethyl acetoacetate with four different amines, in the presence of glacial acetic acid and molecular sieve, using ethanol as solvent for 24 h. The evaluation of the anticorrosive activity was performed using the gravimetric technique and electrochemical methods, such as electrochemical impedance spectroscopy (EIS), linear polarization resistance (LPR), and potentiodynamic polarization (PP). Results indicated that the F-EN (Ethyl (2Z)-3-[(4-fluoro-phenyl)-amino]-but-2-enoate) inhibitor had higher corrosion inhibition efficiency, of 98% by mass loss, and 85% by electrochemical techniques. Adsorption obeyed the Langmuir isotherm, thus suggesting that the inhibitors form a monolayer film in metal surface. These results also contributed to the calculations of the physicochemical parameters of E-a, delta H-ads(&NOTEQUexpressionL;), and delta S-ads(&NOTEQUexpressionL;), which confirmed the corrosion inhibition when compared to the absence of the inhibitors.