Photosynthesis divides into light-dependent and light-independent reactions.
The light-dependent reactions happen in the thylakoid membrane, where the chlorophyll absorbs a photon and then loses an electron, which then enters an electron transport chain that reduces NADP into NADPH. The electron's movement also creates a proton gradient, which is used by the ATP synthase to create ATP. The chlorophyll regains the lost electron from water splitting, which produces oxygen as a waste product.
The light-independent reactions are a process called the Calvin cycle, which uses the NADPH and ATP produced in the light-dependent reactions as well as carbon dioxide and the protons from the water-splitting to create glucose, a 3 carbon carbohydrate.