Glucose is produced by plants through photosynthesis. In this process, the plant uses light energy from the Sun to convert carbon dioxide and water into glucose and oxygen. Algae and certain bacteria and other unicellular organisms also produce glucose through photosynthesis.