Electrocatalytic nitrogen reduction reaction (ENRR) is emerging as a promising routine for the sustainable production of ammonia. Hindered by the strong triple bond in N 2 and unfavorable hydrogen evolution reaction, it is critical to develop efficient catalysts with excellent activity and selectivity. Herein, we propose a novel microfluidic platform that achieves the continuous synthesis and morphology regulation of a twodimensional heterocatalyst FeMo/g-C 3 N 4 through a precipitation process in a confined space. Owing to the rapid mixing and microfluidic manipulation, FeMo/g-C 3 N 4 maintains an overwhelmingly favorable structure compared to the batch methods. Benefiting from the ultrasmall active sites (0.86 nm), homogeneous nanodot distribution, and abundant 2D surface, the promoted N 2 chemisorption and competitive ENRR performance can be simultaneously ensured, as confirmed by the experimental studies. By varying the applied working potential, the optimal ammonia yield can be determined as 33.25 μg h −1 mg cat.−1 at −1.2 V. This work innovatively opens a pathway for morphological fine structural tuning of two-dimensional heterocatalysts, further promoting the ENRR field's development.