Use of the greenhouse gas CO2 as a chemical raw material would not only reduce emissions, but also the consumption of fossil feedstocks. A novel metal-free organic framework could make it possible to electrocatalytically produce ethylene, a primary chemical raw material, from CO2.