Abstract: Nanostructured carbide chemical compound is used to convert carbide to carbon. A method comprising: providing at least one carbide chemical compound and reducing a metal cation with use of the carbide chemical compound to form elemental carbon, wherein the carbide chemical compound is nanostructured. The nanostructured carbide chemical compound can be in the form of a nanoparticle, a nanowire, a nanotube, a nanofilm, a nanoline. The reactant can be a metal salt. Electrochemical reaction, or reaction in the melt or in solution, can be used to form the carbon. The nanostructured carbide chemical compound can be an electrode.