The carbon to CaC 2 route is promising to provide a sustainable elementary unit, C 2 H 2 , for the organic synthesis industry, but the traditional thermal reaction process suffers from low carbon efficiency, harmful gas contamination, high temperature operation, and risky CO management. We herein report a high carbon efficiency (ca. 100 %) conversion of biochar to C 2 H 2 through an electrolytic synthesis of solid CaC 2 in molten CaCl 2 /KCl/CaO at 973 K. The main reactions are carbon reduction to CaC 2 at the solid carbon cathode and oxygen evolution at an inert anode. Meanwhile, the electrolysis removes S and P from the solid cathode, avoiding the formation of CaS and Ca 3 P 2 in CaC 2 and consequently eliminating H 2 S and PH 3 contamination in the finally produced C 2 H 2 .