Metal organic frameworks (MOFs) have emerged as a strong research material due to their exceptional porosity and tunable functional nature. MOF structures consist of metal nodes with organic linker, which can be functionalized depending on the required application. With the tunable properties, it has wide range of applications in energy, environmental and therapeutic approaches. Nevertheless there are several factors which can affect their performance such as lower affinity towards target molecules, chemical and thermal stability etc. To counter these issues several studies have been devoted on functionalizing the MOF. In this work, we have considered UiO-66 (University of Oslo-66) MOF because of its exceptional thermal and chemical stability with a series of versatile ionic liquids (ILs). The selected ILs are 1-ethyl-3-methylimidazolium ([C2MIm]+) and 1‑butyl‑3-methylimidazolium ([C4MIm]+) cations with various anions [X]−, where X = acetate (OAc), tetrafluroborate (BF4), dicyanamide (DCA), nitrite (NO2) and chloride (Cl) anions. These ILs have been impregnated in tetrahedral (∼10 Å) and octahedral (∼16 Å) pores of UiO-66 structure. First principle density functional theory (DFT) approach is used to study the structure, stability, spectral properties and charge transfer between IL/UiO-66 interfaces. Our calculations suggest that, IL does not affect the structure of UiO-66 surface. The anion and the alkyl group in the cations play a vital role in the stability of the complexes. Furthermore, confinement effect influence the stability of the complexes, irrespective nature of anion and cation. Electron density and charge transfer analyses reveal that anions have profound liking towards MOF because of having high electronegative atoms. Our study will help to understand the molecular level interaction between IL@MOF interface, and these composite can be utilized for the energy and environment related applications.