Nowadays, owing to their large surface area, enhanced pore volume, increased porosity, and variable pore size, mesoporous materials, such as mesoporous silica and mesoporous carbon, have attracted significant attention in the areas of physical science and biomedical sciences.