Oxygen reduction at the cathode of fuel cells typically requires a platinum-based material to catalyse the reaction, but lower-cost, more stable catalysts are sought. Now, an intrinsically conductive metal–organic framework based on cheaper elements is shown to be a durable, structurally well-defined catalyst for this reaction.