2-(Alkylsulfanyl)-N-(pyridin-2-yl) acetamide derivatives were synthesized via amidation reaction of acyl chlorides bearing S atom in the long chain with 2-aminopyridine. Derivatives of isoxazolidine and isoxazoline were synthesized through 1,3-dipolar cycloaddition reactions with three different long chain alkenes containing O or S as hetero atoms and C,N-diphenyl nitrone or benzonitrile-N-oxide, respectively. Synthesized compounds were characterized with their FT-IR, H-1 NMR spectra and then their physical properties and corrosion prevention efficiencies were investigated. All compounds were tested with steel coupons in acidic medium by gravimetric method, and also some of them were tested with steel stripe in paraffin based mineral oil medium via standard method. Acidic test was done with a medium concentration of 2 M HCI for 20 h at room temperature. Mineral oil was used and the test in this medium was done at 60 degrees C constant temperature but varying time from 42 to 63 It. The best inhibition was generally obtained at 50 ppm inhibitor concentration in the acidic medium. All tested inhibitors except two of them in oil medium also showed promising inhibition efficiencies. (c) 2007 Elsevier Ltd. All rights reserved.