In food chains and ecological pyramids, plants are producers that make their own food through photosynthesis. Producers always occupy the first trophic level as the foundation of the food chain, with herbivores (primary consumers) at the second level.