Electrochemical nitrite reduction reaction (NO2−RR) is a potential sustainable route for regulating the nitrogen cycle and ambient ammonia (NH3) synthesis. However, it remains a challenge to precisely regulate the reaction pathways and inhibit competing reactions (e.g. hydrogenolysis) for efficient and selective NH3 production in an aqueous solution environment. Here, we utilize the Schottky barrier-induced surface electric field to construct high-density electron-deficient Pd nanoparticles by modulating the N content in the carbon carrier to promote the enrichment and immobilization of NO2− on the electrode surface, which ensures the ultimate selectivity for NH3. With these properties, Pd@N0.14C with the highest N content achieved excellent catalytic performance for the reduction of NO2− to NH3 with the 100% Faraday efficiency at −0.5 and −0.6 V vs. reversible hydrogen electrode (RHE) for NH3 production, which was significantly better than Pd/C and Pd@NxC samples with lower N content. This study opens new avenues for rational construction of efficient electrocatalysts for nitrite removal and NH3 electrosynthesis.