Recently, some binary ionic liquid (IL)/cosolvent systems have shown better performance than the pure ILs in fields such as CO2 absorption, catalysis, cellulose dissolution, and electrochemistry. However, interactions of ILs with cosolvents are still not well understood at the molecular level. In this work, H2O and DMSO were chosen as the representative protic and aprotic solvents to study the effect of cosolvent nature on solvation of a series of ILs by molecular dynamics simulations and quantum chemistry calculations. The concept of preferential interaction of ions was proposed to describe the interaction of cosolvent with cation and anion of the ILs. By comparing the interaction energies between IL and different cosolvents, it was found that there were significantly preferential interactions of anions of the ILs with water, but the same was not true for the interactions of cations/anions of the ILs with DMSO. Then, a detailed analysis and comparison of the interactions in IL/cosolvent systems, hydrogen bonds between cations and anions of the ILs, and the structure of the first coordination shells of the cations and the anions were performed to reveal the existing state of ions at different molar ratios of the cosolvent to a given IL. Furthermore, a systematic knowledge for the solvation of ions of the ILs in DMSO was given to understand cellulose dissolution in IL/cosolvent systems. The conclusions drawn from this study may provide new insight into the ionic solvation of ILs in cosolvents, and motivate further studies in the related applications.