An n-n type heterojunction comprising with CuN and BN dual active sites is synthesized via in situ growth of a conductive metal-organic framework (MOF) [Cu3 (HITP)2 ] (HITP = 2,3,6,7,10,11-hexaiminotriphenylene) on hexagonal boron nitride (h-BN) nanosheets (hereafter denoted as Cu3 (HITP)2 @h-BN) for the electrocatalytic nitrogen reduction reaction (eNRR). The optimized Cu3 (HITP)2 @h-BN shows the outstanding eNRR performance with the NH3 production of 146.2 µg h-1 mgcat-1 and the Faraday efficiency of 42.5% due to high porosity, abundant oxygen vacancies, and CuN/BN dual active sites. The construction of the n-n heterojunction efficiently modulates the state density of active metal sites toward the Fermi level, facilitating the charge transfer at the interface between the catalyst and reactant intermediates. Additionally, the pathway of NH3 production catalyzed by the Cu3 (HITP)2 @h-BN heterojunction is illustrated by in situ FT-IR spectroscopy and density functional theory calculation. This work presents an alternative approach to design advanced electrocatalysts based on conductive MOFs.