An increasing amount of evidence suggests that early ocean hydrothermal systems were sustained sources of ammonia, an essential nitrogen species for prebiotic synthesis of life's building blocks. However, it remains a riddle how the abiotically generated ammonia was retained at the vent-ocean interface for the subsequent chemical evolution. Here, we demonstrate that, under simulated geoelectrochemical conditions in early ocean hydrothermal systems ([Formula: see text][Formula: see text] V versus the standard hydrogen electrode), mackinawite gradually reduces to zero-valent iron ([Formula: see text]), generating interlayer [Formula: see text] sites. This reductive conversion leads to an up to 55-fold increase in the solid/liquid partition coefficient for ammonia, enabling over 90% adsorption of 1 mM ammonia in 1 M NaCl at neutral pH. A coordinative binding of ammonia on the interlayer [Formula: see text] sites was computed to be the major mechanism of selective ammonia adsorption. Mackinawite is a ubiquitous sulfide precipitate in submarine hydrothermal systems. Given its reported catalytic function in amination, the extreme accumulation of ammonia on electroreduced mackinawite should have been a crucial initial step for prebiotic nitrogen assimilation, paving the way to the origin of life.