The scientists developed constructions that can be used to harvest water from desert air or capture carbon dioxide.