Seawater electrolysis with CO2 injection enables sustainable synthesis of carbon-trapping minerals like CaCO3 and Mg(OH)2.