When herbivores (primary consumers) eat the plants as food, this energy is stored in various organic products in the plants and passed on to the primary consumers in the food chain. Plants collect sunlight with the aid of chloroplasts during the process of energy flow in the ecosystem, and a portion of it is turned into chemical energy during photosynthesis.
The food chain and food web facilitate the movement of energy.