Any ecosystem needs energy to sustain it, and the organisms within it. This energy comes in massive quantities from the Sun, although only a tiny fraction of the solar energy hitting the Earth goes towards sustaining life. The flow of energy through an ecosystem is complex, and vital to sustaining all life within it.