The Sun is the ultimate source of energy for Earth's ecosystems. All energy flows - whether through plants (producers), animals (consumers), or decomposers - can be traced back to solar energy captured during photosynthesis. Without the Sun, there would be no energy available to sustain life.