Achieving a balance between H-atom adsorption and binding with H2 desorption is crucial for catalyzing hydrogen evolution reaction (HER). In this study, the feasibility of designing and implementing built-in opposite electric fields (OEF) is demonstrated to enable optimal H atom adsorption and H2 desorption using the Ni3(BO3)2/Ni5P4 heterostructure as an example. Through density functional theory calculations of planar averaged potentials, it shows that opposite combinations of inward and outward electric fields can be achieved at the interface of Ni3(BO3)2/Ni5P4, leading to the optimization of the H adsorption free energy (ΔGH*) near electric neutrality (0.05eV). Based on this OEF concept, the study experimentally validated the Ni3(BO3)2/Ni5P4 system electrochemically forming Ni3(BO3)2 through cyclic voltammetry scanning of B-doped Ni5P4. The surface of Ni3(BO3)2 undergoes reconstruction, as characterized by Grazing Incidence Wide-Angle X-ray Scattering (GIWAXS) and in situ Raman spectroscopy. The resulting catalyst exhibits excellent HER activity in alkaline media, with a low overpotential of 33mV at 10mA cm-2 and stability maintained for over 360 h. Therefore, the design strategy of build-in opposite electric field enables the development of high-performance HER catalysts and presents a promising approach for electrocatalyst advancement.