In this work, the ordered mesoporous silica, SBA-15, is chosen as the matrix for the first time to prepare quasi-solid-state electrolytes (QSSEs) with an ionic liquid, LiTFSI salt and PVdF-HFP. The as-obtained QSSEs are evaluated by electrochemical methods. Lithium metal batteries containing these QSSEs exhibit high discharge capacity and good cycle performance at room temperature, indicating successful battery operation.