The behaviour has evolved many times in bees. 16 times parasitism of social species has evolved (mostly in the family Apidae), and there are 31 lineages which parasitize solitary bees. Altogether there are several thousand species of kleptoparasites, a large proportion of overall bee diversity.