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