In agricultural landscapes, the removal of semi‐natural habitats (SNH) and the intensive use of pesticides contribute to declines of biodiversity, including crop pollinators such as bees (Hymenoptera: Apoidea). However, effects of pesticide use and landscape characteristics on bees have rarely been studied together. In this study, we investigated how SNH in the surrounding landscape, organic and conventional management, and the reduction of fungicides affect wild bee diversity in 32 vineyards in southwest Germany. We used yellow pan traps to sample bees in a crossed design of management (organic vs. conventional) and fungicide use (reduced in fungus‐resistant grape varieties vs. regular) along a gradient with increasing proportions of SNH in the surrounding landscape. Higher proportions of SNH influenced species composition of bees and increased the abundance and richness of above‐ground‐nesting species. Organic vineyards had a 49% higher abundance of bees compared to conventional vineyards. The reduction of fungicides did not affect bee diversity nor abundance. The absence of a response to fungicide intensity suggests that the benefit of organically managed vineyards to wild bees was through differences in their vegetation management, which is in line with the positive response of bees to SNH in the surrounding landscape. Synthesis and applications: Our study underlines that the local provision of diverse vegetation in vineyards and the landscape‐scale provision of suitable SNH are key factors for wild bee conservation in viticulture.