In response to the need for improvement in the utilization of ammonium-rich solutions after the electrochemical reduction of nitrate (NO3--RR), this study combined phosphorus-containing wastewater and adopted the electrochemical precipitation method for the preparation of struvite (MAP) to simultaneously recover nitrogen and phosphorus resources. At a current density of 5 mA·cm-2 and an initial solution pH of 7.0, the recovery efficiencies for nitrogen and phosphorus can reach 47.15% and 88.66%, respectively. Under various experimental conditions, the generated struvite (MgNH4PO4·6H2O) exhibits a typical long prismatic structure. In solutions containing nitrate and nitrite, the coexisting ions have no significant effect on the final product, struvite. Finally, the characterization of the precipitate product by X-ray diffraction (XRD) revealed that its main component is struvite, with a high purity reaching 93.24%. Overall, this system can effectively recover ammonium nitrogen from the NO3--RR solution system after nitrate reduction, with certain application prospects for the recovery of ammonium nitrogen and phosphate.