Photosynthesis occurs in chloroplasts, which contain thylakoid membranes housing the light-dependent reactions. During the light reactions, pigments in the thylakoid membrane absorb light and transfer energy to excite electrons. This builds up proton gradients and reduces NADP+ to NADPH. The dark reactions then use NADPH to fix carbon from CO2 into organic compounds like glucose, in a process called the Calvin cycle. The fixed carbon can then be used to build biomass or be stored as starch.