The Sun is the major source of energy for organisms and the ecosystems of which they are a part. Producers such as plants, algae, and cyanobacteria use the energy from sunlight to make organic matter from carbon dioxide and water. This establishes the beginning of energy flow through almost all food webs.