The hummingbird evolutionary tree shows ancestral hummingbirds splitting from insectivorous swifts (family Apodidae) and treeswifts (family Hemiprocnidae) about 42 million years ago, probably in Eurasia.One key evolutionary factor appears to be an altered taste receptor that enabled hummingbirds to seek nectar. By 22 million years ago the ancestral species of current hummingbirds became established in South America, where environmental conditions stimulated further diversification.Sexual size and bill differences likely evolved due to constraints imposed by courtship because mating displays of male hummingbirds require complex aerial maneuvers. Males tend to be smaller than females, allowing conservation of energy to forage competitively and participate more frequently in courtship. Thus, sexual selection will favor smaller male hummingbirds.
Female hummingbirds tend to be larger, requiring more energy, with longer beaks that allow for more effective reach into crevices of tall flowers for nectar. Thus females are better at foraging, acquiring flower nectar, and supporting the energy demands of their larger body size. Directional selection will thus favor the larger hummingbirds in terms of acquiring food.
Another evolutionary cause of this sexual bill dimorphism is that the selective forces from competition for nectar between the sexes of each species are what drive the sexual dimorphism.Depending on which sex holds territory in the species, it is advantageous for the other sex to have a longer bill and be able to feed on a wide variety of flowers, decreasing intraspecific competition.For example, in species of hummingbirds where males have longer bills, males do not hold a specific territory and have a lek mating system. In species where males have shorter bills than females, males defend their resources and therefore females must have a longer bill in order to feed from a broader range of flower.