A variety of surface active compounds were synthesized by the quaternization of some straight chain amide derivatives with triethylamine or pyridine. Their structure FT-IR and H-1-NMR spectra were recorded. In addition their physical properties and corrosion prevention efficiencies were investigated. All compounds were tested with steel coupons in acidic media by the gravimetric method. As acidic media 1.5 M HCl and 1.5 M H2SO4 were used and the corrosion inhibition tests fulfilled at room temperature for 24 h. Almost all prepared cationic surfactants showed efficient inhibition around their critical micelle concentrations. The effects of HCl concentration on corrosion inhibition of some synthesized compounds were also investigated. The corrosion tests were supported by contact angle measurements.