Functional trait-based approaches are increasingly used for studying the processes underlying community assembly. The relative influence of different assembly rules might depend on the spatial scale of analysis, the environmental context and the type of functional traits considered. By using a functional trait-based approach, we aim to disentangle the relative role of environmental filtering and interspecific competition on the structure of European ant communities according to the spatial scale and the type of trait considered. We used a large database on ant species composition that encompasses 361 ant communities distributed across the five biogeographic regions of Europe; these communities were composed of 155 ant species, which were characterized by 6 functional traits. We then analysed the relationship between functional divergence and co-occurrence between species pairs across different spatial scales (European, biogeographic region and local) and considering different types of traits (ecological tolerance and niche traits). Three different patterns emerged: negative, positive and non-significant regression coefficients suggest that environmental filtering, competition and neutrality are at work, respectively. We found that environmental filtering is important for structuring European ant communities at large spatial scales, particularly at the scale of Europe and most biogeographic regions. Competition could play a certain role at intermediate spatial scales where temperatures are more favourable for ant productivity (i.e. the Mediterranean region), while neutrality might be especially relevant in spatially discontinuous regions (i.e. the Alpine region). We found that no ecological mechanism (environmental filtering or competition) prevails at the local scale. The type of trait is especially important when looking for different assembly rules, and multi-trait grouping works well for traits associated with environmental responses (tolerance traits), but not for traits related to resource exploitation (niche traits). The spatial scale of analysis, the environmental context and the chosen traits merit special attention in trait-based analyses of community assembly mechanisms.