Most ecosystems on Earth derive their energy either directly or indirectly through the Sun and the process of photosynthesis.
Most of the energy used by living things comes either directly or indirectly from the sun.