The actual chemical equation which takes place is the reaction between carbon dioxide and water, catalysed by sunlight, to produce glucose and a waste product, oxygen. The glucose sugar is either directly used as an energy source by the plant for metabolism or growth, or is polymerised to form starch, so it can be stored until needed. The waste oxygen is excreted into the atmosphere, where it is made use of by plants and animals for respiration.