The electrochemical production of green and low-cost ammonia requests the development of high-performance electrocatalysts. In this work, the ampoule method was applied to modulate the surface of the zinc electrode by implanting defects and low-valent active sites. The N-doped ZnS electrocatalyst was thus generated by sulfurization with thiourea and applied for electrocatalytic nitrogen reduction reaction (ENRR). Given the rich sulfur vacancies and abundant Zn-N active sites on the surface, excellent catalytic activity and selectivity were obtained, with an NH3 yield rate of 2.42 × 10–10 mol s−1 cm−2 and a Faradaic efficiency of 7.92% at − 0.6 V vs. RHE in 0.1 M KOH solution. Moreover, the as-synthesized zinc electrode exhibits high stability after five recycling tests and a 24 h potentiostatic test. The comparison with Zn foil, non-doping ZnS/Zn and recent metal sulfide electrocatalysts further demonstrated advanced catalytic performance of N@ZnS/Zn for ENRR. By simple synthesis, S vacancies, and N-doping defects, this promising electrocatalyst would represent a good addition to the arena of transition-metal-based catalysts with superior performance in ENRR.Graphic abstract