Nitrogen fixation by the diazotrophic cyanobacterium Trichodesmium contributes up to 50% of the bioavailable nitrogen in the ocean. N2 fixation by Trichodesmium is limited by the availability of nutrients, such as iron (Fe) and phosphorus (P). Although colloids are ubiquitous in the ocean, the effects of Fe limitation on nitrogen fixation by marine colloids (MC) and the related mechanisms are largely unexplored. In this study, we found that MC exhibit photoelectrochemical properties that boost nitrogen fixation by photoelectrophy in Trichodesmium erythraeum. MC efficiently promote photosynthesis in T. erythraeum, thus enhancing its growth. Photoexcited electrons from MC are directly transferred to the photosynthetic electron transport chain and contribute to nitrogen fixation and ammonia assimilation. Transcriptomic analysis revealed that MC significantly upregulates genes related to the electron transport chain, photosystem, and photosynthesis, which is consistent with elevated photosynthetic capacities (e.g., Fv/Fm and carboxysomes). As a result, MC increase the N2 fixation rate by 67.5-89.3%. Our findings highlight a proof-of-concept electron transfer pathway by which MC boost nitrogen fixation, broadening our knowledge on the role of ubiquitous colloids in marine nitrogen biogeochemistry.