Covalent organic frameworks (COFs) have been hailed as next-generation materials for capturing water from air, powering dehumidifiers, and driving energy-efficient heat pumps. Built from lightweight and organic building blocks, these crystalline and highly porous materials are akin to molecular Lego sets: their geometry and chemistry can be tailored with precision. However, a significant issue remained: in humid air, COFs may collapse.