1-Methylimidazole (1-MIM) and 2-methylimidazole (2-MIM) are miscible in water and imidazolium based ionic liquids (ILs), and can coordinate with soft metal ions. This paper reports a novel solvent extraction process for trivalent lanthanides and yttrium from aqueous solutions into ILs, which was promoted by a hydrophilic 1-MIM or 2-MIM. Slope analysis confirmed that MIM in ILs formed a 1 : 1 complex with La3+ and Y3+ and a 1 : 4 complex with Eu3+ and Lu3+, depending on the atomic number of the metal and the metal-ligand interactions that have been characterized by FTIR spectroscopy and ESI-MS. The effect of nitrate concentration on the extraction of lanthanides with 1-MIM in ILs was analysed. It indicated that nitrate anions were involved in the extraction process. Under the same conditions, the extraction of lanthanides with MIM into n-pentanol was carried out. The extractability was by far lower than that obtained in ILs. Both cationic exchange and neutral solvation mechanisms occurred in ILs and only the neutral solvation mechanism occurred in n-pentanol, which were demonstrated by the extraction tests and the structure of extracted species determined by ESI-MS. The competitive extraction in ILs showed good selectivity for lanthanides compared to alkali metals and alkaline earth cations. After extraction, lanthanides could be stripped very easily from the ionic liquid phase with dilute nitric acid. From the temperature dependence data, the thermodynamic parameter values (ΔH, ΔS and ΔG) were calculated. The results indicated that the extraction reactions were spontaneous and went through an endothermic process.