Ionic liquids (ILs) are liquid mixtures formed by organic cations and inorganic or organic anions under certain conditions, usually with a melting point below 100°C. The preparation process of ILs is simple and has the characteristics of low volatility, high stability, high electrical conductivity, and non-flammability. These characteristics are highly in line with the pharmaceutical concept of "green chemistry".