This work includes the preparation of ionic liquid 1,4-dimethylpiperidinium iodide [MMPip]I and its salts with ferric chloride as Lewis acid in different molar proportions [MMPip]I/nFeCl 3 (n=1,2,3). The prepared compounds were diagnosed by spectroscopic and physical methods such as 1 H-NMR, FT-IR, elemental analysis (CHN) and other techniques. The thermal stability of these compounds was studied to use in the extractive desulfurization process (EDS). The efficiency of these compounds in removing sulfur compounds from the petroleum model was examined using dibenzothiophene (DBT) with a concentration of 1000 ppm dissolved in the solvent of normal hexane. The results showed that the compounds used had an acceptable efficiency of up to 30% despite using medium amounts of the extracted agent relative to the oil model; these compounds have a promising future in extractive sulfur removal processes.