Abstract Resource competition between wild pollinators and managed honeybees (Apis mellifera) has the potential to detrimentally impact insect biodiversity as well as wild plant and crop pollination. As honeybees are central place foragers, their competitive impact on wild bees is expected to be structured by hive proximity, in conjunction with foraging decisions related to landscape‐level resource availability. Yet, how these factors structure dietary niche overlap between wild bees and managed honeybees remains unclear. We conducted a field experiment in seminatural grasslands, where honeybee foraging densities and niche overlap with buff‐tailed bumblebees (Bombus terrestris) were measured at four distances (<100, 500, 1000 and 2000 m) from experimentally placed apiaries, during and after the blooming period of mass‐flowering oilseed rape (Brassica napus). We measured honeybee foraging densities using standardized transect surveys, and quantified species diet composition and dietary niche overlap from pollen samples collected from both bee species. Honeybee foraging densities were highest near apiaries and declined sharply beyond 500 m from the apiaries. However, niche overlap was unrelated to hive proximity but positively related to the availability of oilseed rape. Furthermore, there were significant inter‐ and intraspecific differences in pollen diet composition and breadth throughout the season. Synthesis and applications: Niche overlap between honeybees and bumblebees in agricultural environments was due to resource sharing of mass‐flowering oilseed rape. When both honeybees and bumblebees predominantly forage on wild plants, they maintain distinct pollen diets, suggesting there is a low risk of resource competition between these generalist taxa. Conservation actions that promote floral resource availability and diversity in agricultural landscapes are crucial to maintain niche differentiation between managed honeybees and wild bees.