The energy flow within ecosystems starts with the Sun, which is the primary source of energy for all living organisms. Plants harness solar energy through photosynthesis, creating sugars that serve as fuel for themselves and the herbivores, or primary consumers, such as grasshoppers, mice, squirrels, and rabbits.