Nature Catalysis, Published online: 25 August 2026; doi:10.1038/s41929-026-01608-6 C–P coupling of CO2 and phosphite to produce the pharmaceutically relevant compound foscarnet could offer a way to synthesize a valuable compound from waste materials. Now, this reaction is demonstrated electrocatalytically using an ionic liquid-modified Bi electrode.