A food chain describes how energy and nutrients move through an ecological community. Producers like plants use photosynthesis to create food, which is then consumed by primary consumers or herbivores. Secondary consumers or carnivores eat the primary consumers, and some secondary consumers are eaten by tertiary consumers at the top of the food chain. Many organisms play multiple roles by eating both plants and other animals. Detritivores break down dead organisms and cycle nutrients, while parasites live in or on a host organism. Together, interconnected food chains form a complex food web in any given environment.