Unprecedented hydrothermal stability in functional membranes has been obtained with hybrid organic-inorganic nanoporous materials, enabling long-term application in energy-efficient molecular separation, including dehydration up to at least 150 degrees C.