In photosynthetic organisms, NADPH is produced by ferredoxin-NADP+ reductase in the last step of the electron chain of the light reactions of photosynthesis. It is used as reducing power for the biosynthetic reactions in the Calvin cycle to assimilate carbon dioxide.