Photosynthesis produces glucose (a sugar) as the main product, using energy from light to convert carbon dioxide and water. Oxygen gas is released as a by-product.