This study comprises synthesis of a novel heterocyclic compounds through one of the most powerful methods in organic synthesis (domino reaction). Their structures have been determined by using several techniques such as Nuclear magnetic resonance spectrophotometer for proton 1H-NMR and carbon13C-NMR, Infra-red spectroscopy FT-IR, Mass spectroscopy MS, Liquid chromatography-Mass spectroscopy (LC-MS) and CHNS analyses. The last part is the study and application of compounds as a inhibitors for corrosion crude oil pipelines(N-80 type) and inhibitors for carbon steel (C-38 type) in saline water and acidic solution as a corrosive media, and has been evaluated by using Weight loss method, Gasometric method, as well as has been evaluated through electrochemical techniques such as potentiodynamic polarization, electrochemical impedance spectroscopy EIS and scanning electron microscopy-energy dispersive X-ray spectroscopy SEM/EDX. Finally the inhibitor 3,5,12- trithia-1,7,14-triaza-tricycle [5.3.3.27,10] tetradeca-6(14),9-dien-8-one has been compared with some of commercial inhibitors such as, AS-101, WFT-9368, COIL GARD, HQI-85M and AL-600.