Graphical Abstract: Task-specific ionic liquids based on imidazolium cation containing carbonitrile, carboxyl, and alkyl chains have been employed in an attempt to design new functionalized liquids for solvent extraction of sulphur compounds from diesel fuel.