Bees and wasps, while both belonging to the Hymenoptera order, diverged within the superfamily Apoidea. Specifically, bees are thought to have evolved from predatory wasps, primarily within the family Crabronidae. Phylogenetic analysis suggests that bees are nested within a paraphyletic Crabronidae.