Nitrate-contaminated water poses a health risk to humans and negatively impacts the ecosystem through eutrophication. While traditional nitrate-removal methods seek to convert the reactive nitrogen species to inert dinitrogen, we propose to valorize nitrate by electrochemically reducing it to ammonia. Ammonia can be used as a fertilizer, chemical precursor, or alternative fuel. Electrochemical methods of water treatment can be implemented in both urban and rural settings because they are modular and can be operated at small through large scales, can be run at ambient temperature and pressure, and can use any source of electricity for power. Here we investigate the impact of ions typically found in groundwater (e.g., calcium, chloride, etc.) on the electrochemical reduction of nitrate to ammonia. In situ attenuated total reflectance–surface-enhanced infrared adsorption spectroscopy (ATR–SEIRAS) is used to probe the impact of water contaminants on adsorbed reactants and reaction intermediates. In situ surface-enhanced Raman spectroscopy (SERS) is employed to reveal the surface-deactivation mechanisms of these contaminants. The in situ spectroscopy results are correlated with product analysis experiments to measure the selectivity and efficiency of ammonia synthesis. Gaseous products are measured by gas chromatography (GC) and liquid products are quantified by nuclear magnetic resonance (NMR). The goal of our study is to identify strategies to prevent cathode deactivation, such as operating conditions and catalyst surface modification, that enable electrochemical nitrate reduction to ammonia in typical groundwater compositions without additional purification or chemical additives.