The ancestors of bees were wasps in the family Crabronidae, which were predators of other insects. The switch from insect prey to pollen may have resulted from the consumption of prey insects which were flower visitors and were partially covered with pollen when they were fed to the wasp larvae. This same evolutionary scenario may have occurred within the vespoid wasps, where the pollen wasps evolved from predatory ancestors. Until recently, the oldest non-compression bee fossil had been found in New Jersey amber, Cretotrigona prisca of Cretaceous age, a corbiculate bee.[2] A bee fossil from the early Cretaceous (~100 mya), Melittosphex burmensis, is considered "an extinct lineage of pollen-collecting Apoidea sister to the modern bees".[3] Derived features of its morphology (apomorphies) place it clearly within the bees, but it retains two unmodified ancestral traits (plesiomorphies) of the legs (two mid-tibial spurs, and a slender hind basitarsus), showing its transitional status.[3] By the Eocene (~45 mya) there was already considerable diversity among eusocial bee lineages.[4][a]
The highly eusocial corbiculate Apidae appeared roughly 87 Mya, and the Allodapini (within the Apidae) around 53 Mya.[7] The Colletidae appear as fossils only from the late Oligocene (~25 Mya) to early Miocene.[8] The Melittidae are known from Palaeomacropis eocenicus in the Early Eocene.[9] The Megachilidae are known from trace fossils (characteristic leaf cuttings) from the Middle Eocene.[10] The Andrenidae are known from the Eocene-Oligocene boundary, around 34 Mya, of the Florissant shale.[11] The Halictidae first appear in the Early Eocene[12] with species [13][14] found in amber. The Stenotritidae are known from fossil brood cells of Pleistocene age.[15]