After ATP is formed in the first part of photosynthesis, for living things to grow, reproduce and repair themselves, the inorganic form of CO and water to make the end product of glucose.
The ADP and NADPH are recycled to the light-dependent side to start the process over.
The second overall principle of photosynthesis is that carbon, oxygen, and hydrogen atoms are taken from carbon dioxide and water molecules and are broken up and rearranged into new substances: carbohydrate (specifically glucose) and oxygen gas (so we can breathe, whew! This reaction represents the transfer of matter: carbon dioxide from the atmosphere, water from the soil or atmosphere, into sugar in the plant and oxygen back into the atmosphere.
The first part of the process happens in the thylakoids of the chloroplasts and are the "light-dependent" reactions: The photosystems I and II absorb the photons from the sunlight and process them through the membranes of the thylakoids simultaneously.
In particular, the food molecules generated by photosynthesis provide energy to living things when eaten and broken down.