Nanochemistry meets macrostructures: Scientists report the synthesis of a macroscopic aerogel from carbonitride nanomaterials which is an excellent catalyst for the water-splitting reaction under visible-light irradiation. The study adds new opportunities to the material properties of melamine-derived carbonitrides.