Bees and wasps provide important ecosystem services such as pollination and biocontrol in crop-dominated landscapes, but surprisingly little information is available on hymenopteran communities in temperate forest ecosystems. Species richness and abundance of bees and wasps can be hypothesised to increase with plant diversity, structural complexity, and availability of food and nesting resources. By experimentally exposing standardised nesting sites, we examined abundance and species richness of cavity-nesting bees (pollinators), wasps (predators) and their associated parasitoids across a tree diversity gradient in a temperate deciduous forest habitat. In addition, spatial distribution of individuals and species across forest strata (canopy vs. understory) was tested. Abundance and species richness was high for predatory wasps, but generally low for pollinators. Species-rich forest stands supported increased abundance, but not species richness, of pollinators and predatory wasps, and also increased abundance and species richness of natural enemies. In addition, the forests showed a distinct spatial stratification in that abundance of bees, wasps and parasitoids as well as parasitism rates were higher in the canopy than understory. We conclude that particularly the canopy in temperate forest stands can serve as an important habitat for predatory wasp species and natural enemies, but not bee pollinators. Enhanced tree diversity was related to increased hymenopteran abundance, which is likely to be linked to an increase in nesting and food resources in mixed forest stands.