ABSTRACTAimGlobal warming has highlighted the importance of understanding the role of thermal tolerance as a driver of species distributions, especially for ectotherms. Here we analyse interactions between latitude, elevation and arboreality as predictors of geographic patterns of thermal tolerance in ants.LocationThe collected data are distributed globally.MethodsWe first tested the effect of latitude, elevation and its interactive effect on ant CTmax and CTmin. Second, we tested whether CTmax and CTmin are phylogenetic clustering. Finally, we tested whether CTmax and CTmin can be explained by nesting microhabitat (ground vs. tree‐nesting species) and whether the probability of occurrence of tree‐nesting species along thermal gradients helps explain the global pattern in ant CTmax.ResultsCTmax and CTmin displayed high and low phylogenetic signals respectively and therefore showed different responses to geographic gradients. Notably, we found that CTmax was higher in higher latitudes. This was explained by a lack of elevational turnover at high latitudes among tree‐nesting species, which are exposed to warmer microclimates and have higher CTmax compared with ground‐nesting species. CTmin decreased with elevation at low latitudes, but did not vary with elevation at higher latitudes.Main ConclusionsOur findings highlight the important influence of arboreality on the macroecology of thermal tolerance, substantially modifying traditional notions of variation along latitudinal and elevation gradients.