In a tropical rainforest, the food chain begins with primary producers like trees and shrubs, which convert sunlight into energy. Primary consumers, such as herbivores, feed on these producers. Secondary consumers, including carnivores, prey on primary consumers. Tertiary consumers, or apex predators, sit atop the food chain and regulate lower trophic levels. This intricate food web ensures ecosystem stability and highlights the ecological importance of each species in maintaining the delicate balance of the rainforest ecosystem.