The aim of the study was to disentangle the effects of landscape composition and farming practices on the taxonomic and functional diversity of wild bees and their possible consequences for pollination potential. We analysed a dataset of 107 crops at whose edges wild bees were captured between 2013 and 2019. Pesticide treatments of each crop were recorded throughout the year. At the landscape level, the proportions of different types of land use were calculated in a circle with a radius of 500 m. The data set is composed of 18 variables of ecological, landscape and farming practices measures.