Ionic liquids (ILs) have gained much attention as green reaction solvents for organic synthesis. In this paper, four ionic liquids [(1R,2S)-N-octyl-N,N-dimethylephedrinium hexafluorophosphate, (1R,2S)-N-octyl N,N-dimethylephedrinium trifluoromethanesulfonate, 1-methyl-3-n-octylimidazolium trifluoromethanesulfonate and 1-butyl-3-methylimidazolium hexafluorophosphate] were prepared by using microwave irradiation with yields ranging from 84% to 86%. Furthermore, these ionic liquids were applied to prepare intermediate derivatives in the synthesis process of schweinfurthin G derivatives. The ionic liquid, (1R,2S)-N-octyl-N,N-dimethylephedrinium trifluoromethanesulfonate was more effective in the shorten reaction time, comparing with remaining ionic liquids. The structures of ionic liquids and the intermediate derivatives were determined by analyses of MS and NMR data.