A study of the reaction of thioanisole with singlet oxygen in pyrrolidinium- and imidazolium-based ionic liquids has been carried out. In these solvents, thioanisole shows a strongly enhanced reactivity with respect to molecular aprotic solvents, probably due to a stabilization of the persulfoxide intermediate in the ionic medium. Product isotope effects suggest a mechanistic change ongoing from pyrrolidinium to imidazolium solvents.