The formation of urea by electrocatalytic means remains a great challenge due to the lack of a suitable catalyst that is capable of not only activating inert N 2 and CO 2 molecules but also circumventing the complexity associated with subsequent reaction steps leading to urea formation. Herein, by means of comprehensive density functional theory simulations, we investigate the catalytic activity of highly stable transition-metal-free dual-boron atom-doped graphitic carbon-nitride monolayers with different pore sizes toward urea production under ambient conditions. As per the results, dual boron atoms impregnated in g-C 2 N and g-C 6 N 6 monolayers with large pore diameters can successfully activate the N 2 molecule and lead to the spontaneous formation of the *NCO*N intermediate, which is the most crucial step for urea formation via direct coupling of N 2 and CO 2 . Interestingly, the B 2 @g-C 2 N and B 2 @ g-C 6 N 6 favor urea production with low limiting potentials of −1.11 and −1.18 V compared to very high limiting potentials of −1.71 and −1.88 V, respectively, for ammonia synthesis, leading to an almost 100% Faradaic efficiency for urea formation over ammonia. The dual-boron doping in g-C 3 N 4 with a smaller pore size depicts comparatively weaker N 2 adsorption than g-C 2 N and g-C 6 N 6 counterparts. Further, B 2 @g-C 3 N4 prefers ammonia formation at a very low limiting potential of −0.40 V compared to a very high limiting potential of −2.11 V for urea formation. Thus, our findings clearly highlight the critical role played by the pore size of carbon-nitride monolayers in tuning the reactivity and catalytic activity of dual-boron atom catalysts toward urea formation in a selective manner, thereby providing valuable guidance in exploring other highly efficient urea catalysts.Article pubs.acs.org/IC