Ecosystems are characterized by chemical cycling and energy flow, both of which begin when photosynthetic plants, aquatic algae, and some bacteria take in solar energy and inorganic nutrients to produce food in the form of organic nutrients.
Sylvia S. Mader, Biology (10th ed., 2010), Ch. 1. A View of Life.