Wild bees are declining, mainly due to the expansion of urban habitats that have led to land-use changes. Effects of urbanization on wild bee communities are still unclear, as shown by contrasting reports on their species and functional diversities in urban habitats. To address this current controversy, we built a large dataset, merging 16 surveys carried out in 3 countries of Western Europe during the past decades, and tested whether urbanization influences local wild bee taxonomic and functional community composition. These surveys encompassed a range of urbanization levels, that were quantified using two complementary metrics: the proportion of impervious surfaces and the human population density. Urban expansion, when measured as a proportion of impervious surfaces, but not as human population density, was significantly and negatively correlated with wild bee community species richness. Taxonomic dissimilarity of the bee community was independent of both urbanization metrics. However, occurrence rates of functional traits revealed significant differences between lightly and highly urbanized communities, for both urbanization metrics. With higher human population density, probabilities of occurrence of above-ground nesters, generalist and small species increased. With higher soil sealing, probabilities of occurrence of above-ground nesters, generalists and social bees increased as well. Overall, these results, based on a large European dataset, suggest that urbanization can have negative impacts on wild bee diversity. They further identify some traits favored in urban environments, showing that several wild bee species can thrive in cities.