A butterfly is considered a primary consumer in the food chain. This is because butterflies primarily feed on nectar from flowers, which are producers. As herbivores, they play a crucial role in pollination, helping plants to reproduce.
Butterflies are also part of a larger ecosystem where they serve as prey for secondary consumers like birds and small mammals. Their role as both pollinators and prey makes them an important link between producers and higher-level consumers.