Photosynthesis is a process carried out in plant cells that serves to synthesize sugars such as glucose which can later be used to form other important molecules such as cellulose.
Photosynthesis requires energy from sunlight, carbon dioxide (CO2) and water to obtain glucose and oxygen as products. Sunlight provides the ATP to carry out the reactions, water provides electrons and CO2 provides the carbon needed to build the sugar.