Two novel amido‐amine‐based cationic surfactants, namely, 3‐decanamido‐N,N,N‐trimethylpropan‐1‐aminium methyl sulfate (DAMS) and N‐(3‐decanamidopropyl)‐N,N‐dimethylbutan‐1‐aminium bromide (DABB) were prepared and their chemical structures were elucidated via various spectroscopic tools. The surface activities of the targeted prepared surfactants were investigated. Utilizing potentiodynamic polarization, hydrogen evolution, and weight loss methods, the inhibition impact of both synthesized surfactants on aluminum corrosion in solution with 0.5 M HCl was studied. The effect of raising both temperature and surfactant concentration on the inhibition efficiency was studied and the thermodynamic functions were calculated and clarified. Langmuir adsorption isotherm fitted widely with the empirical data. At all concentrations and temperatures, it was found that the inhibition efficiency for DAMS is greater than that of DABB.