Ordered mesoporous silica (OMS) as an adsorbent and membrane for separation of carbon dioxide (CO2).