Covalent organic frameworks (COF) materials have shown great potential as solid electrolytes (SSE) in advanced energy storage systems. However, the limitation of COF based electrolytes is their limited ion conductivity within COF pores. To overcome this challenge, many researchers have introduced ionic liquids (ILs) into the COF framework, creating a quasi solid electrolyte called COF-IL (QSSE). The addition of IL improves the mobility of lithium ions, but there are still some limitations in terms of electrochemical performance. To address this issue, metal organic frameworks (MOFs) were also employed in this work to control and optimize the performance of COF pores. This leads to the formation of MOF in COF (MC) structures, which can more effectively accommodate IL and create an exceptionally efficient pathway for lithium ion transport. MC doped with IL( IL@MC )Solid electrolytes exhibit extremely high ionic conductivity of 1.5 × 10-3 S cm-1 at room temperature, with a lithium ion migration number of 0.26 at 60 ℃. This improvement in performance can be attributed to the functionalization of COF pores and MOFs, where MOFs act as selective gates for transporting cations.