Recent studies have shown that aqueous U(VI) ions can be transformed into U(VI) precipitates through electrocatalytic redox reactions for uranium recovery. However, there have been no reports of U(IV) solids, such as UO2, using electrochemical methods under ambient conditions since low-valence states of uranium are typically oxidized to U(VI) by O2 or H2O2. Here we developed a secondary metal ion-induced strategy for electrocatalytic production of U(IV) solids from U(VI) solutions using a catalyst consisting of atomically dispersed gallium on hollow nitrogen-doped carbon capsules (Ga-Nx-C). This method relies on the presence of secondary metal ions, e.g., alkaline earth metals, transition metals, lanthanide metals, and actinide metals, which promote the generation of UO2 or bimetallic U(IV)-containing oxides through a two-electron transfer process. No U(IV) solid products were generated in the presence of alkali metal ions. Mechanistic studies revealed that the strong binding affinity between U(IV) and alkaline earth metals (Ca2+/Mg2+/Sr2+/Ba2+), transition metals (Ni2+/Zn2+/Pb2+/Fe3+, etc.) and lanthanide/actinide metals (Ce4+/Eu3+/Th4+/La3+) suppressed re-oxidation of U(IV) to U(VI), leading to the generation of U(IV)O2 and Mx(M = Ce, Eu, Th, La)U(IV)yO2. This work provides fundamental insights into the electrochemical behavior of uranium in aqueous media, whilst guiding uranyl capture from nuclear waste and contaminated water.