Algae, cyanobacteria, and plants produce their own food through the process of photosynthesis. Photosynthesis involves the conversion of light energy (sunlight) to chemical energy. During this process, light energy is used to produce foods from carbon dioxide and water with oxygen as a bi-product. The chemical energy produced is stored in the form of glucose (sugar) and is used for cellular activities.