Bees are phytophagous insects that exhibit recurrent ecological specializations related to factors generally different from those discussed for other phytophagous insects. Pollen specialists have undergone extensive radiations, and specialization is not always a derived state. Floral host associations are conserved in some bee lineages. In others, various species specialize on different host plants that are phenotypically similar in presenting predictably abundant floral resources. The nesting of solitary bees in localized areas influences the intensity of interactions with enemies and competitors. Abiotic factors do not always explain the intraspecific variation in the spatial distribution of solitary bees. Foods stored by bees attract many natural enemies, which may shape diverse facets of nesting and foraging behavior. Parasitism has evolved repeatedly in some, but not all, bee lineages. Available evidence suggests that cleptoparasitic lineages are most speciose in temperate zones. Female parasites frequently have a suite of characters that can be described as a masculinized feminine form. The evolution of resource specialization (including parasitism) in bees presents excellent opportunities to investigate phenotypic mechanisms responsible for evolutionary change.