In a food chain, each stage represents a trophic level. A trophic level refers to a hierarchical level in an ecosystem, based on the organism's source of energy and nutrients. The first level is occupied by primary producers, such as plants, which produce their food through photosynthesis. The second level consists of primary consumers, such as herbivores, that feed on the primary producers. The third level comprises secondary consumers, such as carnivores, that eat the primary consumers. The fourth level is occupied by tertiary consumers, which are carnivores that feed on other carnivores. The trophic level of an organism determines its position in the food chain and its role in the transfer of energy and nutrients through the ecosystem.