Photoelectrocatalyzed hydrogen production plays an important role in the path to carbon neutrality. The construction of heterojunctions provides an ideal example of an oxygen precipitation reaction. In this work, the performance of the n-n type heterojunction CeBTC@FeBTC/NIF in the photoelectronically coupled catalytic oxygen evolution reaction (OER) reaction is presented. The efficient transfer of carriers between components enhances the catalytic activity. Besides, the construction of heterojunctions optimizes the energy level structure and increases the absorption of light, and the microstructure forms holes with a blackbody effect that also enhances light absorption. Consequently, CeBTC@FeBTC/NIF has excellent photoelectric coupling catalytic properties and requires an overpotential of only 300 mV to drive a current density of 100 mA cm−2 under illumination. More importantly, the n-n heterojunction was found to be effective in enhancing charge and photogenerated electron migration by examining the carrier density of each component and carrier diffusion at the interface.