The food chain starts with the sun providing energy that plants use to produce their own food through photosynthesis. Herbivores then eat the plants, and carnivores eat the herbivores or other carnivores, passing nutrients and energy between each level. Decomposers like fungi and bacteria break down dead plants and animals, recycling nutrients back into the soil to nourish new plant growth.