Abstract
Urbanization is a major global driver of biodiversity change, with species responses to urban settings ranging from avoidance to exploitation. To better understand these responses, we conducted a global analysis of urban relative affinity inferred from occurrence data across more than 30,000 animal and plant species. Our synthesis showed a consistent pattern across taxa and biogeographic regions: many species are urban avoiders, while few thrive as urban exploiters—a pattern we coin “Species Urbanness Distribution”. We then assessed whether body size, an integrative ecological trait fundamental to space use, mobility, metabolism, and environmental sensitivity, showed consistent associations with urban affinity among species and across 371 taxonomic families. Analyses were conducted at the interspecific level and focused primarily on variation among taxonomic families (with an accompanying application to view results available here: https://globalecologyresearchgroup.github.io/body_size_results_visualization/). Larger body sizes were generally associated with greater urban affinity in plants compared to animals, though these size-affinity relationships showed considerable variability among families. Our findings highlight the heterogeneous relationship between body size and urban affinity across the tree of life, underscoring the importance of tailored strategies to support urban biodiversity. This research advances ecological understanding of urban filtering and provides a framework for guiding biodiversity-sensitive urban planning amid accelerating global urbanization.
Main
Cities represent novel anthropogenic environments, leading to significant mismatches with the evolutionary history of most organisms1. As urban areas are set to expand two- to sixfold over the 21st century2, urbanization poses a substantial and accelerating threat to global biodiversity3. Yet species vary widely in their responses: some are completely extirpated (‘urban avoiders’), others persist through behavioral or ecological acclimation (‘urban adapters’) and/or rapid adaptive evolution to cities4,5, and some even thrive in urban environments6 (‘urban exploiters’). Quantifying these divergent responses is key for understanding how urbanization will continue to shape global biodiversity and urban ecosystem functioning (e.g., reshaping of food webs7,8). However, urban ecology has typically relied on small-scale studies, often focused on relatively few species and/or particular taxonomic groups such as birds9 or mammals10. Thus, whether general patterns of urban preference or avoidance emerge across species within and across regional pools remains untested.
Species likely do not respond randomly to urbanization as traits may modulate species’ responses. Trait-based approaches are powerful for identifying generalizable patterns across diverse taxa, particularly at broad spatial and phylogenetic scales11. Although many traits (e.g., diet, reproductive strategy, dispersal ability) may influence species-specific responses to urbanization, body size stands out as both the most widely measured and most taxonomically integrative. It is a key trait of any organism, relating to space use, life-history, and metabolic rate across the tree of life12,13,14, making it a plausible direct or indirect predictor of species’ responses to key stressor gradients in urban landscapes, including resource fragmentation, heat stress from urban heat islands, and anthropogenic disturbance (Fig. 1).

Conceptual framework illustrating hypothesized mechanisms linking urban affinity to interspecific body-size shifts.
These include dispersal and mobility constraints under habitat fragmentation44,45, thermophily and the temperature–size rule driven by the urban heat island effect15,30, size-biased competition and survival94,95, and size-biased human preferences64. Urban fragmentation of habitat resources can select for increased mobility (e.g., larger butterflies) or reduced mobility (e.g., larger seeds) depending on isolation severity. Elevated urban temperatures favor thermophily, which often negatively correlates with size as it affects the heat balance via thermal inertia. Similarly, these higher temperatures generally favor smaller-bodied adult ectotherms because they accelerate development and reduce time available for growth (i.e., temperature-size rule). In plants, the increased CO₂ and nutrient availability associated with anthropogenic environments—due to heating- and traffic-related CO2 emissions and eutrophication—provides a competitive advantage to larger plant species, and human preferences too may favor larger species (e.g., tree-lined streets), whereas smaller species may be advantaged in colonizing built infrastructure.
Body size correlates with urban mobility, but in complex ways15. For instance, while higher mobility allows some animal species to better cope with the fragmented nature of urban habitat resources, reduced mobility might be advantageous for exploiting localized resources and avoiding risks associated with the urban matrix16,17. In plants, body size—often indexed by height—correlates with competitive ability, light acquisition, and reproductive strategy, with larger species generally having greater resource needs but potentially higher resilience to urban stressors18. Notably, the urban heat island effect may drive shifts to smaller-bodied animal species due to elevated metabolic costs14,15, echoing similar patterns observed under global warming19,20. However, these shifts toward smaller size can be overruled by requirements for increased urban mobility in taxa where mobility increases with body size15. Overall, despite body size’s fundamental role in modulating species responses to their environment, a systematic, cross-taxon assessment of how urbanization filters body size distributions is lacking.
Here, we present a global synthesis of urban affinity across more than 30,000 animal and plant species, using occurrence records from the Global Biodiversity Information Facility (GBIF) and remotely sensed night-time light intensity as a proxy for urbanization. We define a continuous metric of regional urban affinity calculated as the realized spatially-explicit urban affinity per species in each subrealm. This metric measuring a species’ relative affinity to urban areas, with negative values indicating avoidance and positive values indicating preference21. To account for regional variation in both species pools and in species’ urban affinity across their range22,23, we calculated urban affinity within 52 geographic subrealms (Fig. S1), representing broadly coherent species pools and ecological contexts. Our dataset spans 47 taxonomic classes—from flowering plants (8,980 species) to insects (8,674 species) to mammals (648 species)—and represents a uniquely taxonomically broad assessment. We first introduce the concept of “Species Urbanness Distribution” (SUD) to characterize the composition of a regional community in terms of its species’ urban affinities. We then use Bayesian hierarchical modeling to test whether body size predicts urban affinity across 17,722 species from 371 families, across multiple subrealms. These analyses allow us to quantify both consistency and heterogeneity of body size effects on urban affinity across multiple taxonomic levels, and across regions. This synthesis addresses two core questions: (1) What is the shape of species’ urban affinity distributions within regional communities? (2) Does body size consistently correlate with species’ urban affinities across taxonomic groups and biogeographic contexts? Our aim is to identify broad, cross-taxonomic patterns in species’ urban affinity at a global scale, rather than to resolve the specific causal mechanisms driving urban success or failure within individual taxa or cities.
Results and Discussion
Species Urbanness Distributions (SUDs)
We identified a consistent pattern in the extent to which regional communities—defined as all species within a given biogeographic subrealm—consist of urban avoiders and exploiters. We term this the Species Urbanness Distribution (SUD), which captures the full distribution of urban affinity values across species in a community. SUDs exhibited a characteristic shape: a pronounced peak at negative values and a long right-skewed tail toward high positive values, indicating that most species are ‘urban avoiders’, while only a few are ‘urban exploiters’. These patterns in central tendency were broadly consistent across subrealms and taxonomic levels, although distributional shapes varied among higher taxonomic groups (Fig. 2). Conceptually, SUDs parallel the well-known Species Abundance Distributions24 (SADs), which describe the general law of communities being composed of many rare and few common species24,25. Similarly, much like the skewed distributions observed in SADs24,26, the skewed shape of SUDs indicates that while many species exhibit some degree of urban affinity, a relatively small subset of species attain high levels of urban affinity and dominate urban environments. While previous studies have reported a similar pattern at smaller spatial scales27, our synthesis demonstrates this applies across the globe and taxa. To evaluate this more formally, we compared distributions across subrealms for groups with the largest sample sizes and found that while distributional shapes varied among higher taxa, median values and overall spread were broadly similar within comparable taxonomic levels (Figs. S2–S4).

Species urbanness distributions (SUDs) exemplified for eight subrealms.
Plotted are all species per subrealm (A), with the images highlighting an example ‘hyper-exploiter’ species from each of these subrealms (i.e., with a high urban affinity score). The x-axis shows the urban affinity measure whereas the y-axis is the number of species within that bin. There were consistent patterns for kingdoms, classes, and orders (B) as shown by similar central tendencies despite variation in distributional shape. The vertical dashed line represents where species are neutral towards urbanization. Photos acquired from iNaturalist CC BY-NC and background was removed by authors: Brown rat (© Ouwesok), Monk parakeet (© Juan Emilio), Cape dwarf chameleon (© Berkeley Lumb), American cockroach (© Len Worthington), Flaming kay (© Lyubo Gadzhev), Juno silverspot (© Rigoberto Ramírez Cortés), Hibiscus harlequin bug (© Sam Fraser-Smith), and Mascarene island leaf-flower (© Douglas Goldman).
The skewed shape of SUDs suggests that traits enabling species to tolerate urban environments are unevenly expressed, given that only a handful of species show extreme urban affinity values, but our results suggest this is geographically widespread across taxa. These traits may be partly found in human-commensal species, which are found globally and often include invasive non-native species28. Such traits “pre-adapted” to urban conditions allow for some species to not only persist but thrive in urban environments where most species cannot. Framing these patterns through the lens of exaptation may be particularly useful, as traits that evolved under non-urban selective pressures may incidentally confer advantages in urban environments without having arisen in response to urbanization per se (sensu Lambert et al.4). We therefore speculate that the skewed shape of SUDs may reflect the uneven distribution of exaptive traits across species pools, rather than widespread adaptive evolution to urban conditions.
Consistent with this interpretation, if exaptive traits that facilitate urban persistence are unevenly distributed across species pools, most species would be expected to exhibit avoidance rather than affinity toward urban environments. Indeed, we found that the median urban affinity is most often below one, indicating widespread avoidance among species (Fig. 2, S5). This is expected, given that urbanization typically involves severe loss and fragmentation of habitat resources for most organisms1, which negatively impacts numerous taxa, including birds29, beetles30, and moths31. Additionally, the urban heat island—typical of most cities32—imposes thermal stress, especially during extreme heat events33, which may drive community shifts toward heat-tolerant species, as observed in ants34, bees35, and plants36. Yet, urban environments also frequently contain green infrastructure and remnants of natural habitats that can act as sanctuaries for rare and endangered species37, and cities can harbor a large part of the regional diversity38. But these green infrastructure spaces are often also dominated by widespread generalist species. The multitude of environmental stressors, combined with competition dynamics between urban-tolerant and intolerant species, likely influence the shape of SUDs (Fig. 2). Future ecological research should aim to disentangle these contrasting drivers across taxa and regions to better understand the ecological filters at play.
The relationship between body size and urban affinity
To test whether there is a consistent pattern of body size filtering associated with urban affinity across the tree of life, we integrated our species-level urban affinity values with body size measures collated from the literature. We performed this analysis for 17,722 species spanning both plants (i.e., plant height) and animals (e.g., body length, mass, wingspan). We first evaluated the overall relationship between body size and urban affinity across all taxa, fitting two models (see Methods for details). We found that the effect of body size on urban affinity is stronger in plants than in animals (0.64 vs. 0.21), although uncertainty was substantial in both groups, with zero-overlapping 95% credible intervals (plants: -0.68 to 1.84; animals: -0.25 to 0.66). Variation in urban affinity was most pronounced at the family level (sd = 2.43), followed by class and order level (sd = 2.34 and 1.75, respectively). Similarly, the effect of body size varied most among families (sd = 1.24), compared to orders (sd = 0.73) and classes (sd = 0.27), suggesting that body size predicts urban affinity most consistently within the finer family-level taxonomic scale, rather than at higher scales where other factors may obscure relationships. Based on these patterns, we focused subsequent analyses at the family level, fitting Bayesian models for families with data on at least ten species to independently explore the relationships between urban affinity and body size. Because body size covaries with multiple ecological traits (e.g., dispersal ability and metabolic rate), we focused on family-level analyses to capture shared ecological strategies while still allowing sufficient variation among species to detect trait–environment relationships39.
Across 371 families (93 plant and 278 animal families), we found no universal relationship between body size and urban affinity; instead, patterns were heterogeneous (Fig. 3). Using 80%, 90%, and 95% credible intervals to infer weak, moderate, and strong effects, respectively, we found evidence of body size filtering in 83 families (29 strong, 19 moderate, and 35 weak). These included 48 animal families (17% of animal families) and 35 plant families (38% of plant families), indicating that for most families, body size does not consistently predict urban affinity. Nonetheless, among plant families, the effect of body size on urban affinity was predominantly (N=77; 83%) positive, with 23 families showing strong or moderate effects. In contrast, animal families (N=278) exhibited more variable responses: 58% showed positive effects and 42% negative, with only a subset showing strong or moderate effects (positive: 18 families; negative: 6 families). Notable families with the strongest positive associations included Salicaceae (willows) and Columbidae (doves and pigeons), where larger species are more urban-tolerant. In contrast, Dipsadidae (snakes) and Accipitridae (birds of prey) showed the strongest negative associations. Further discussion of notable order-level effects is provided in the Supporting Information. While the overall patterns for family-level effects are visible in Fig. 3, we also developed an interactive online visualization of family-level effect sizes, available here.

Effect sizes between body size and urban affinity across the tree of life and individual effect sizes for animals and plants families.
(A) Effect sizes of the relationship between body size and urban affinity for the 371 families included in our analysis, plotted along a phylogenetic tree of life (see Methods); Plantae are highlighted and shaded in green. Colors indicate the direction of the effect: orange indicates negative, petrol indicates positive, grey indicates neutral (i.e. any effect sizes between -0.05 and 0.05). (B) and (C) histograms of individual effect sizes for each family, for animals (B) and plants (C). Orders are shown along the outside edge of the phylogenetic tree, each with a bar and icon, for any order with more than 3 families. An interactive version for full exploration of our results at both family and order level is available here.
The variability in both the direction and strength of urban body size filtering across taxa likely reflects the diversity of urban stressors and the contrasting taxon-specific pathways through which body size mediates sensitivity to them. In raptors, for example, the negative association between body size and urban affinity—consistent with previous findings40,41—likely stems from large species’ need for extensive hunting territories, whose availability and access are constrained by urbanization-driven habitat loss and fragmentation. Similarly, the strong negative effect observed in Coleoptera supports the hypothesis that the urban heat island drives shifts to smaller body sizes in urban-tolerant ectotherms, consistent with Atkinson’s temperature-size rule42. Larger beetles may also be more vulnerable to urban disturbance due to lower reproductive output and reduced dispersal capacity43. In contrast, urban communities of Lepidoptera (moths and butterflies) typically shift toward larger—and hence more mobile—species than rural communities15, likely because greater mobility facilitates persistence in typically fragmented urban landscapes44.
Our results are broadly consistent with prior taxon-specific trait-based studies (e.g., Hahs et al.17), but also highlight that relationships between body size and urbanization vary across taxa and analytical frameworks. For example, global syntheses and regional studies have reported positive, negative, or null size–urbanization relationships depending on clade and spatial scale. A recent global analysis that compiled empirical occurrence data for multiple terrestrial faunal taxa across cities worldwide reported broadly similar body-size responses to urbanization17. For four of the five groups that overlap with our analysis—amphibians, bats, bees, and birds—the direction of the body-size relationship with urbanization was consistent between studies. The only exception was carabid beetles, which tended to be smaller-bodied in highly urbanized environments in that analysis, whereas we detected no significant size effect for this family. Studies on birds, for example, have found mixed results, including positive associations to urbanization in some regional assemblages45, no global relationship in others46 or an overall negative relationship globally23, and negative relationships in particular clades such as raptors40. Such discrepancies likely arise because different studies quantify urbanization differently, focus on different spatial grains, or analyze different components of species responses (e.g., presence–absence, abundance, or occurrence distributions). Additionally, a study on multiple taxa including butterflies and moths found a positive relationship in butterfly and moth community-weighed mean body size with increases in urbanization level, similar to our findings31. Researchers have also found that smaller-bodied dung-associated beetles potentially benefit from urban environments, which is similar to the negative association we found between urbanization and body size in beetles47. Our approach complements these studies by estimating occurrence-based urban associations across thousands of taxa simultaneously, allowing comparison of how consistently body size predicts urban affinity across taxonomic groupings rather than within a single lineage. In this sense, variation among published results does not contradict our findings but instead reinforces the conclusion that body size is a context-dependent filter whose direction and strength depend on ecological setting, taxonomic scope, and the urbanization metric used.
Order-level analyses (see Supplementary Text and our interactive figure here) offer further insight into the mechanisms shaping body size responses to urbanization. In plants, we consistently observed a positive association between body size and urban affinity, except for grasses and ferns. Taller species may gain a competitive edge in urban settings48, by exploiting higher temperatures, increased CO2 and nitrogen availability49, and typically reduced O3 concentration50. In contrast, smaller species of grasses and ferns were favored by urbanization in our study, likely stemming from high disturbance regimes in urban grasslands and ruderal environments. Among ectotherm animals—including Diptera, Coleoptera, Hemiptera, and Squamata—the general expectation is a shift toward smaller species, consistent with metabolic constraints imposed by the urban heat island (Fig. 1, Fig. 3). However, exceptions occur when urban fragmentation requires greater mobility, favoring larger and more mobile species15. Urban spiders also exhibit body size reductions, driven by both elevated temperatures and reduced prey size51. For endotherms such as rodents and birds, we typically anticipate a shift toward larger species because of increased habitat fragmentation, especially when body size correlates positively with mobility. While this pattern held for most bird families, notable exceptions—like Piciformes and Accipitridae—demonstrate negative associations, possibly due to constraints related to large home range requirements and prey size52,53. Future research should further explore such trophic consequences of urban size filtering, as these effects can either align across trophic levels or become mismatched. For instance, urban environments may favor larger predators—such as insectivorous birds and mammals—while simultaneously selecting for smaller insect prey species. Such mismatches can lead to nutritional stress, reduced reproductive success, and ultimately a more severe homogenization of urban predator guilds54,55. Another ecological consequence of size mismatches may occur when urban pollinator assemblages become disproportionally large or small relative to the floral traits of native plants, potentially reducing pollination efficienc56—although rapid evolutionary shifts in floral morphology could help mitigate these effects57. Because our synthesis is correlative and macroecological in nature, the mechanisms discussed above are best viewed as hypotheses that can be evaluated through future work combining experimental, trait-based, and longitudinal data.
Ultimately, the heterogeneous and sometimes weak relationships between body size and urban affinity suggests that body size alone cannot explain the emergence of extreme urban exploiters and the skewed shape of SUDs. Focusing on body size as a focal trait necessarily represents a simplification of the multidimensional processes underlying species’ responses to urbanization, driven in part by data availability when conducting a taxonomically-broad synthesis. Instead, urban affinity likely depends on multivariate trait combinations17,58 that vary among taxa59 and ecological contexts60. Traits that are likely to correlate with urban affinity include dispersal capacity, behavioral flexibility, diet breadth, reproductive strategy, thermoregulatory ability, and, in plants, life history traits such as growth form, clonality, phenology, and seed size. The diversity of trait pathways through which species may persist or thrive in urban environments is consistent with the pronounced taxonomic heterogeneity we observe and helps explain why body size alone does not yield a universal pattern.
Current limitations and future directions
Our analysis, which incorporates over 17,000 species, represents the most extensive assessment to date of how body size relates to urban affinity across the tree of life. Such scale was enabled by the growing mobilization of biodiversity data through GBIF, particularly from citizen science platforms like iNaturalist61. Still, our analysis largely focused on common species, as we applied a cutoff of at least 100 observations per species per subrealm. As a result, rare or less frequently observed species are underrepresented, and their responses to urbanization remain an important avenue for future study. This is especially important given the growing recognition of cities as sanctuaries for various species37. Nevertheless, our findings highlight the relevance of common species to understanding macro-ecological patterns (sensu62). We focused here on broad-scale patterns, but future work should further explore the context-dependency of body size filtering—for instance, how it varies with city size, urban green infrastructure configuration, regional climate, and human cultural preferences. For example, one possible explanation for the observed trend of larger, urban-tolerant plants may lie in the widespread use of non-native woody ornamentals, such as alien trees and tall shrubs, which reflect human aesthetic preferences63,64—suggesting human preferences are an additional filter on plant size. These human-driven preferences may also influence detectability and recording effort, as larger and more conspicuous plant species are more likely to be planted, maintained, and documented in urban environments, and thus be available in GBIF for our analyses. However, we suggest that this is not purely a sampling artifact, but such processes likely interact with ecological filtering to shape the realized size structure of urban plant communities. Similarly, human–wildlife conflict and active management of large-bodied animals in cities may influence which species persist in urban environments, potentially constraining the upper end of the body size distribution. Taken together, these examples illustrate the importance of considering the socio-ecological context of urban species assemblages65. In parallel, while our study examined interspecific variation, growing evidence also points to important intraspecific responses, where body size shifts within species can modulate urban affinity31,66,67.
One important limitation of our synthesis is the heterogeneity in how body size is measured across taxa, including differences among mean, maximum, and sex-specific estimates. While our analytical framework explicitly accounts for this variation through transformation, scaling, and hierarchical modeling with random intercepts (see Methods), residual measurement noise may still obscure weak size–urban affinity relationships. This challenge is inherent to large-scale trait syntheses that integrate data from disparate sources, and highlights the need for continued efforts to standardize trait databases and expand the availability of harmonized organismal trait data across the tree of life. Nevertheless, the urban affinity scores presented here will form a valuable foundation for future research and local-scale planning efforts, in particular those that use citizen science to track restoration progress. For example, these affinity scores could inform urban greenspace surveys aimed at calculating integrity indices—providing a repeatable, quantitative tool to assess and monitor the long-term success of urban ecological restoration by measuring the ‘urbanness’ of local species communities in urban greenspace45. In this context, incorporating taxon-specific body size-urban affinity relationships can enhance conservation outcomes by tailoring strategies to the size dynamics of assemblages. For instance, in assemblages where larger species are disproportionally filtered out (i.e., a negative size-affinity link), efforts should focus on increasing the size and quality of habitat patches and mitigating the urban heat island.
Conversely, in assemblages where smaller, less-mobile species are more vulnerable, improving functional connectivity between habitat patches should be prioritized68. For butterflies in particular, Pla-Narbona et al.68 advocate for such context-specific management strategies—balancing habitat patch quality and connectivity—to promote more diverse urban butterfly communities.
Conclusions
Our global analysis of over 30,000 species provides new insight into how diverse taxa respond to urbanization, revealing a consistent skew in urban affinity—characterized by many urban avoiders and few exploiters—across biogeographic regions and taxonomic groups. We introduce the concept of Species Urbanness Distributions (SUDs) as a novel framework to quantify and compare the impact of urbanization on species communities. Much like Species Abundance Distributions (SADs) are essential for ecology and biodiversity research, SUDs offer a generalizable lens through which the community structure and ecological resilience of urban biotas can be assessed. Understanding the processes that generate SUDs, and understanding the ecological impacts of differently shaped SUDs, represent key avenues for future research.
Although body size emerged as a predictor of urban affinity, we found not only substantial heterogeneity across families and orders, but also that body size filtering alone is unlikely to explain the consistently skewed SUD shape. Taken together, these patterns suggest that urban affinity likely emerges from multiple trait combinations rather than a single, universally advantageous trait, and that strong affinity to urban environments is not uniformly expressed across taxa, despite occurring broadly across regions. Nevertheless, trait-based approaches—especially those integrating multiple functional traits—hold strong potential for uncovering the processes driving the diversity of species’ urban responses and for interpreting the shape and skew of SUDs. Moreover, trait-based predictions of species’ vulnerability could be used to formulate effective strategies to promote biodiversity in urban environments17. Our synthesis complements taxon-specific, presence–absence trait studies by identifying broad, cross-taxonomic patterns that can motivate and contextualize more mechanistic analyses17,23.
Looking ahead, the continued growth of citizen science data platforms, such as iNaturalist, will play an increasingly critical role in tracking and understanding the mechanisms driving biodiversity responses to urbanization. These data streams will enable broader quantification of species’ urban affinity, including rare and currently underrepresented taxa. Combined with trait-based modeling, this growing dataset could be leveraged to identify urban-vulnerable species and hence guide urban habitat restoration initiatives. In this way, SUDs and trait-informed predictions offer powerful tools for more effective urban strategies to conserve biodiversity on an increasingly urban planet.
Methods
Our methodological approach can be broken down into three key steps: (1) quantifying species-specific urban affinity scores, stratified by subrealm (i.e., biogeographic region); (2) collating measures of body size for as many species as possible for which we were able to quantify urban affinity; and (3) quantifying the relationship between urban affinity and body size at various taxonomic levels.
Quantifying urban affinity
Our aim was to derive a continuous, occurrence-based metric that describes how species are distributed along an urbanization gradient within a given biogeographic region. To do this, we followed a three-step procedure (sensu Callaghan et al.21,69,70). First, we quantified the level of urbanization associated with individual species’ occurrence locations (i.e., coordinates) using remotely sensed night-time lights. Second, we summarized these values at the species level within each subrealm to obtain a species-specific regional urban score. Third, we expressed each species’ urban score relative to the regional background of urbanization level to obtain a subrealm-specific measure of urban affinity, which reflects whether a species tends to occur in more or less urbanized environments than is typical for that region. In the following paragraphs, we walk through each of these steps in detail, including the assumptions, limitations, and intended interpretation of the resulting metrics.
Assigning urbanization level to species’ occurrences
We downloaded occurrence data from the Global Biodiversity Information Facility (hereafter GBIF) (https://doi.org/10.15468/dl.4dcbgt) on February 4th, 2021, including ∼1.4 billion biodiversity records from >24,000 datasets. GBIF data were filtered to only include observations that were recorded as species, and an additional step was taken to ensure that the listed genus in GBIF matched the genus of the species name, ensuring validity of the taxonomic nomenclature of GBIF. Due to uncertainty in matching observations with remotely-sensed products, any GBIF observation with a coordinate uncertainty > 1 km was removed. This filtering step removed individual observations with high spatial uncertainty, rather than excluding entire datasets or survey types. We only included species from a taxonomic Class (i.e., the rank between Phylum and Order) that had at least 10 species reported to GBIF, focusing on the most common classes for downstream analyses.
We then overlaid GBIF species occurrence observations with a remotely-sensed layer representing a continuous proxy of urbanization—Visible Infrared Imaging Radiometer Suite (VIIRS) night-time light71. We used this proxy as it is a continuous measure of urbanization commonly used to represent urban extent72,73,74. Previous work has shown that VIIRS night-time lights is negatively correlated with greenness measured through the Enhanced Vegetation Index (EVI) and positively correlated with human population density69,71. Although night-time light intensity can vary among cities with similar impervious surface due to differences in land use, infrastructure, and cultural lighting practices, at broad spatial scales it functions as an integrative proxy of urbanization75,76,77,78,79,80, with localized heterogeneity contributing primarily to additional variance rather than systematic bias. We used Google Earth Engine81 for our geospatial processing and data were obtained for the VIIRS Stray Light Corrected Nighttime Day/Night Band Composites product, representing monthly composites, (i.e., this dataset in Google Earth Engine: NOAA/VIIRS/DNB/MONTHLY_V1/VCMSLCFG) with a native resolution of ∼500 m2. We took the median of all monthly composites for each pixel (i.e., a single grid cell of the nighttime lights raster representing a fixed ground area) to calculate a pixel-level urbanization value, measured in average radiance, using imagery from January 2015 to January 2021. GBIF data were filtered from January 1st, 2010 to February 4th, 2021. We acknowledge that these two temporal scales do not precisely match, but because urban conversion at the landscape/regional scale happens relatively slowly, we assume that the level of urbanization between 2015 and 2021 accurately captures the relative differences between regions with low and high urban land cover.
To avoid computational overload, we used geohash encoding to assign every record in GBIF to a “pixel” representing the VIIRS average radiance based on its geographic coordinates. We used geohash7 encoding to divide the geographic area into grid cells (referred to as blocks), each representing an approximate spatial area of 150 m2. The VIIRS night-time lights data, with a native resolution of ∼500 m2, was then matched to these blocks by assigning each geohash7 block the average VIIRS radiance value that intersects it. We do not assume positional accuracy at the scale of the geohash blocks, but geohash encoding was used solely for computational indexing, while the effective spatial resolution of the urbanization metric is that of the VIIRS data (∼500 m). This approach allows us to avoid unnecessary redundancy in the data while maintaining the original VIIRS resolution.
Accounting for geographic context through subrealm stratification
To account for geographic heterogeneity in both species’ distributions and the baseline levels of urbanization, we stratified our analyses by global biogeographic subrealms (N=52; Fig. S1). Subrealms represent an intermediate hierarchical level within the One Earth82 (https://www.oneearth.org/bioregions/) bioregionalization framework, grouping the 185 terrestrial bioregions into broader units that reflect shared species pools and ecological contexts while maintaining meaningful regional structure. This scale represents a practical compromise between analyzing data at the finer bioregion level (which would result in many regions with insufficient observations for robust analysis) and broader classifications such as continents or the 14 biogeographic realms, which aggregate ecologically distinct regions and species pools. This regionalization has been widely used in macroecological and biogeographic research to contextualize species–environment relationships because subrealms capture meaningful gradients in biotic assemblages that are not accounted for by climatic classifications alone83,84.
This stratification allows species’ associations with urban environments to be interpreted relative to the environments available within the regions they occupy. This is important, as previous work has shown that species’ responses to urbanization are constrained by biogeographic context, because regional species pools reflect shared evolutionary, ecological, and historical filters23. Previous work has also shown that urban associations among species are context-dependent, and interpreting species’ responses without accounting for regional baselines conflates availability of urban environments with species’ affinity to them. This distinction is critical because identical levels of urbanization (e.g., VIIRS radiance) can have different ecological meanings across regions with different species pools and land-use histories. It avoids conflating species’ urban affinity with global differences in urban availability.
Calculating urban affinity
After each GBIF occurrence record was assigned a VIIRS radiance value, as described above, we summarized these values at the species level within each subrealm. Specifically, for each species s within each subrealm r, we calculated the mean VIIRS radiance across all occurrence locations of that species in that subrealm. We refer to this quantity as the subrealm-specific urban score (𝑈𝑠,𝑟). Formally, the urban score for species s in subrealm r is defined as:

where 𝑛𝑠,𝑟 is the number of GBIF occurrence records for species s within subrealm r, and 𝐿𝑖 is the VIIRS night-time lights radiance value associated with occurrence i. The urban score is therefore an absolute descriptive summary of the urbanization levels associated with a species’ occurrence locations within a given subrealm. Higher urban scores indicate that a species tends to be observed in more highly urbanized (i.e., more brightly lit) environments, whereas lower values indicate occurrence in less urbanized environments. These urban scores serve as the intermediate step in our workflow and form the basis for the subsequent calculation of urban affinity.
To express species’ urban associations relative to the regional context in which they occur, we converted species-specific urban scores into a subrealm-specific measure of urban affinity. This step accounts for differences in baseline urbanization among regions and ensures that species are evaluated relative to the environments available within their biogeographic context. Within each subrealm r, we defined urban affinity for species s as: Aₛ,ᵣ = Uₛ,ᵣ − mean(Uᵣ), where 𝑈𝑠,𝑟 is the species-specific urban score calculated for species s within subrealm r, and 𝑚𝑒𝑎𝑛(𝑈𝑟)is the mean VIIRS radiance across all occurrence records of all species in that subrealm. This transformation centers species’ urban scores on the regional background level of urbanization.
Urban affinity values therefore describe whether a species tends to occur in environments that are more urbanized or less urbanized than is typical for that region (Fig. S6). Species with negative values occur disproportionately in less urbanized environments (urban avoiders), whereas species with positive values occur disproportionately in more urbanized environments (urban exploiters). By default, these values are relative measures, interpretable only within subrealms, and are not intended to represent absolute or globally comparable levels of urbanization. Importantly, this metric quantifies a species’ realized spatial association with urban environments relative to the regional background based on occurrence data. This framing is consistent with previous macroecological studies that infer species’ environmental affinities from spatial distributions rather than performance metrics (e.g.21,85). Consistent with this interpretation, previous work has also shown that measures of urban affinity (sometimes referred to as tolerance) calculated from VIIRS night-time lights are strongly correlated with analogous metrics using alternative proxies of urbanization such as human population density and the global human modification index45.
We applied the above procedure to any species that had at least 100 observations in a subrealm. Previous work has shown that this cutoff approximates the variability of a species’ response to urbanization and ensures that enough of a species urban habitat use has been captured21,86. After this filtering we were left with a total of 56,181 data points—i.e., unique urban affinity measures of a species in a subrealm—for potential inclusion in our analyses. These records represented 30,373 species that had at least one urban affinity measure, from 47 classes and across 51 subrealms (Fig. S7; Data S1). The number of subrealms a species was found in was mostly 1 (64%) but ranged from 1 to 34 (Fig. S8). All urban affinity measures (i.e., urban affinity by subrealm measures) which we produced as part of our workflow are made available, as we hope to advance further testing of urban affinity among different taxonomic groups and regions, while highlighting that correct interpretation of these relative urban affinity values is essential before use.
Sampling biases are common in large biodiversity databases, including GBIF. For instance, urban areas are better sampled compared to remote regions, as contributors typically concentrate around areas with high human density. However, our approach mitigates this concern by calculating each species’ urban affinity relative to the regional background of observations within the same subrealm. As a result, any broad-scale bias toward sampling in human-dominated landscapes affects all species within a region similarly, allowing meaningful comparisons among species rather than reliance on absolute estimates of urban occurrence. Importantly, our interpretation therefore focuses on relative differences among species within shared geographic contexts, rather than on absolute levels of urbanization. Previous work has found that this approach of assigning urban affinity is strongly correlated with occupancy-detection models where the target-background sampling is explicitly accounted for (see Figure S5 in 21). As illustrative examples, these data can be used to better understand the differences in urban affinity among Hymenoptera in Northeast American Forests (Fig. S9), Lepidoptera in Southeast Asian Forests (Fig. S10), or Asterales in Scandinavia & West Boreal Forests (Fig. S11).
Species urbanness distributions
Our analysis of species urbanness distributions was descriptive in nature, relying on data visualization using ggplot2 to make histograms and density histograms of urban affinity values for each subrealm. In these analyses at the subrealm level, species are treated equally without any differentiation taxonomically, compared with the taxonomically-stratified analyses where species within each taxonomic rank are treated as similar (see below). To evaluate the consistency of SUD distributions across taxonomic levels and regions, we compared distributions among the most data-rich subrealms using violin plots for groups represented by ≥50 species (Supplementary Figures S2–S4).
Aggregating measures of body size
Our objective was to compile a dataset of species-specific measures of ‘body size’, or ‘organism size’ more broadly to integrate with our measures of species-specific urban affinity described above. We aimed to find measures for as many species as possible, maximizing our sample size for modeling. For plants, we used ‘plant height’ as a proxy for body size, and data were downloaded from the TRY database—a database compilation of plant traits from many different dataset87. For animals, body size can be measured in different ways, depending on the taxonomic group of interest (e.g., body length, wingspan, biomass, shell size, radius, forewing length, body mass, or biovolume). Therefore, our dataset was purposefully broad in its composition of body size estimates. Because ‘body size’ is the predominant form referred to in the literature, we use this throughout, but take it to broadly mean ‘organism size’ as discussed above.
To build the animal dataset, we first performed a semi-systematic broad literature search, using Web of Science, Google Scholar, Zenodo, Dryad, and Figshare with variations of the key words: “body size”, “organism size”, “body length”, “body mass” and “interspecific”, “global patterns”, “animals”, and higher-level groups such as classes (e.g., “Aves”, “Birds”, “Mammals”, “Mammalia”). We started by downloading known compilations for various taxa, for example mammals88 or Odonata89. In these instances, we spent minimal further time searching for specific body size data for these larger taxonomic groups, assuming that these compilations had already aggregated the majority of data available. Following this, we conducted more detailed literature searches, predominantly using Google Scholar and Web of Science, which focused on our a priori list of species for which we had a measure of urban affinity (Data S1). These were conducted at class, order, or family taxonomic levels, but not at taxonomic levels below family. Multiple keywords were used for each group while searching when it was obvious to do so. For example, when searching for body size measures in Coccinellidae both “ladybirds”, “ladybugs”, and “Coccinellidae” were used in search strings, as well as “wing length”, “body length”, or “body size”. Search effort was qualitatively proportional to the number of species we had in each taxonomic level. For example, because we only had 43 species with urban scores from the class Diplopoda but 3,515 species from the order Lepidoptera, we spent proportionately more time and effort searching for body size data for Lepidoptera. Similarly, we spent more time on hard-to-find taxa, namely groups from Insecta. In our searches we generally ignored studies that were focused on intraspecific variation in body size for one or a few species, unless we found that the species was included in our urban affinity list. In addition to literature searches, we emailed networks of colleagues, looked at reference lists in papers that had data, and emailed corresponding authors of papers who had potentially relevant data but for which data were not accessible.
After this semi-systematic searching, we re-assessed the remaining species for which we had an urban affinity measure but not a measure of body size. We then performed a second-level targeted search (i.e., more systematic) for any family with at least 10 species remaining for which we had a measure of urban affinity. First, we searched Web of Science and Google Scholar one family at a time and looked at the first 100 hits, with the family name ‘and’ “body size” used as search terms. Second, we used Google search engine to search for these remaining species individually (N∼3,100). We focused on including species for which Google immediately returned an estimate of body size (e.g., through Wikipedia, or an aggregating website), and did not go to original species descriptions. This detailed searching and the aggregation of body size measures concluded in June 2022.
Measurements of body size
In our searching for body size, we were agnostic to the type of body size measure, given that many different measures are used for quantifying body size, or proxies for body size. For each dataset we downloaded or processed, we kept track of the following key metadata properties: ‘type’, ‘units’, and ‘measurement detail’. Type refers to the different types of body size measurement, ranging from body length and body mass to Weber’s length in ants. Table S1 shows a list of the different body size types encompassed in our analysis (see statistical details below for how different body size types were accounted for in our analyses). For each dataset, we also kept track of the units (e.g., mm, g, mg cm^-2, or mm^3). And lastly, wherever possible, we noted the measurement detail of the body size measures, whether the mean, median, or maximum was used, or whether it was for males or females only. Many times, however, this information was not readily available, and thus this metadata field was not required in our dataset composition.
Taxonomic harmonization and dataset integration
Because body size data were aggregated across many potentially different datasets, we performed a taxonomic harmonization step to regain some species that did not match due to typos, spelling mistakes, or synonyms. For this, we treated Plantae and Animalia separately and used the taxize package90 in R to search through the list of species and find any synonyms or fuzzy matches of other taxonomic entities, always matching back to the GBIF taxonomic backbone, given that our urban affinity measures follow this taxonomy (Data S1). With the possible synonyms and matches, we then integrated the urban affinity measures with the body size dataset using either direct matches or matches of synonyms. The taxonomic harmonization step regained a total of 831 species (see Fig. S12) that were integrated in the dataset for analysis. Data S3 provides details on the 223 different ‘datasets’ (i.e., downloaded data, or manually added data) that were processed as measures of body size. The most prevalent class in our final dataset (Fig. S13) was Insecta (N=7,526), followed by Magnoliopsida (N=4,872) and Aves (N=3,313).
Our final dataset for potential analysis and modeling (Data S2) included a total of 94,087 observations (i.e. unique combination of species urban affinity values, subrealm, and body size measure) for 20,957 species that had at least one measure of urban affinity and at least one measure of body size.
Quantifying the relationship between urban affinity and body size
Our objective here was to understand the relationship between urban affinity (the response variable) and body size (the predictor variable). Our dataset had potentially multiple measures of body size for an individual species, and differing levels of metadata. For example, some datasets may have specified whether the mean was used, or others might have specified for females only (see Table S1). Therefore, before modeling, our goal was to minimize the undue effect of having too many random effect levels. First, because an individual species could have multiple measures of body size, we selected the body size measure that was most common among the species in each family. For example, if a species had both a measure of body length and of body mass, we selected the measurement type that was most commonly available among the species in each family. Second, we further reduced the potential number of levels and variation in body size measurement by creating a synthetic “metadata” variable that was the combination of ‘type’, ‘units’, and ‘measurement detail’. By doing this, we decreased the potential number of levels of a random effect from 223 (i.e., the number of data sources) to 71 (i.e., the combination of type, unit, and measurement detail). Third, several papers/data sources could have all reported the same metadata (e.g., maximum body length for females in mm), and instead of being treated as individual random effects because they were from different data sources, we assumed that these represented similar data and collapsed them into one random effect level (here, for maximum body length for females in mm). Importantly, this procedure did not result in the exclusion of species lacking a particular body size measurement type; rather, all species with at least one available body size estimate were retained, with measurement heterogeneity explicitly accounted for through hierarchical modeling.
Overall kingdom-level model construction
We used Bayesian hierarchical models to test for the effect of body size on urban affinity. In our models, urban affinity was the response variable and body size was the predictor variable of interest. To evaluate the overall relationship between body size and urban affinity, we fitted two comprehensive models that incorporated hierarchical taxonomic levels and the relationship with body size. The first model included fixed effects for kingdom and log-transformed body size due to its skewed distribution, along with their interaction, to investigate differences in the body size effect on urban affinity between plants and animals. The random effects accounted for hierarchical taxonomic levels, incorporating random intercepts and slopes for class, order, and family to capture variation at each level. Additional random effects for metadata and subrealm were included as random intercepts to control for study-specific differences in data and regional differences in urban affinity. The model formula was:

The second model built upon this structure but only included an interaction term between log-transformed body size and kingdom as well as kingdom as a fixed effect to determine if the effect of body size on urban affinity varied consistently across the plant and animal kingdom. It maintained the same hierarchical random effects structure as the first model, with class, order, and family nested to account for hierarchical variation, and metadata and subrealm included as additional grouping factors. The formula was:

Family-specific model construction
For our main analyses we chose to employ a ‘many models’ approach, where we fit individual models for each family that met a set of minimum criteria because many families do not have a known association or published information on the extent to which urban affinity associates with body size. A family was only included if there were at least 10 unique species with an urban affinity measure and body size measure, and a subrealm was only included if it had at least two species included to specify a random slope. For example, if there was only one species of a particular family included in our dataset, this family would not have received an independent model. We decided to focus our main analysis at the family level for three key reasons. First, for most of the taxonomic families included in our analyses there is little a priori expectation about the effect of body size on urban affinity (i.e., little to no literature on the subject; but see McClain and Boyer39), and therefore we wanted each model to represent an advance in knowledge of that relationship for that family. Second, there were large imbalances in the number of data points available for each taxonomic group, with some families having hundreds of species with available data and others with only a handful of species. Thus, we wanted to avoid shrinkage where the model results were primarily driven by the taxonomic groups with a larger number of data points represented. Third, we wanted to avoid an instance where a family (or other taxonomic grouping) could have little or no relationship between body size and urban affinity, but if included together in one model could result in a positive effect (see Fig. S14 for a simulated example). This was a smaller concern at the family level, which we present as the main analysis, because of the smaller imbalance in data availability across the taxa within each family.
When we fit the family-specific models, there were different requirements for the random effect structure depending on how many subrealms and metadata sources (i.e., types of body size measures) were available. In the simplest case, all species in a family were just from one subrealm and had just one data source for body size. But this was not always the case, and therefore we developed four different ‘types of models’ which varied in their treatment of random effect structure. Each ‘type’ of model, however, had the same overall objective—to quantify the relationship between body size and urban affinity. The four model types are as follows. Type 1: had at least two subrealms and at least two types of synthetic metadata (see above) sources included. Type 2: had data from only one subrealm and only one type of synthetic metadata source included (but could have data from more than one initial data source). Type 3: had at least two subrealms and only one type of synthetic metadata source included. Type 4: had data from only one subrealm and at least two types of synthetic metadata sources included. For all types of model fits, the response variable was the urban affinity measure, described above, and the fixed effect of interest was body size which was log10-transformed and scaled and centered by the synthetic metadata source. Type 1 had a random intercept and slope for subrealm, allowing the intercept and slope to vary across different levels of subrealm as well as a random intercept for the synthetic metadata source. Type 2 had no random effects. Type 3 had only a random intercept and slope for subrealm, allowing the intercept and slope to vary across different levels of subrealm. Type 4 had only a random intercept for the synthetic metadata source. Modeling was done using the ‘brm()’ function in R from the brms package91,92,93. For all model types we specified a standard normal prior, with a mean of 0 and a standard deviation of 1 applied to the fixed effects of the model. Models were fit with 1000 warmup iterations, 6000 iterations for the Markov Chain Monte Carlo sampling, 4 chains, and the adaptation target acceptance probability was set to 0.99.
For models of type 1 and type 4, where we combined metadata for body size measurements among different species, we also explored more complex model structures that included a random slope for body size by metadata source, in addition to subrealm. Such a model structure would allow the relationship between body size and urban affinity to vary across measurement types. However, these models often substantially reduced interpretability and inflated uncertainty around slope estimates, especially when metadata groups were sparsely represented, which was common. Additionally, many of the families only had 2 types of metadata, limiting our statistical power to fit random slopes. Comparative analyses showed that such models produced weaker or more uncertain estimates than our main model structure (i.e., random intercept for metadata of body size). We also note that to account for heterogeneity in body size measurement types, all body size values were log10-transformed, scaled, and centered by their metadata source prior to analysis, following standard practices in allometric studies. We use two illustrative examples (Figures S15 and S16) to illustrate the influence of including a random slope for metadata source.
Additional analyses beyond family level
Although our main analysis was focused on the family level, one potential drawback is that species could be excluded from any of the analyses for a family that has a small number of species. Plus, because some analyses have previously been conducted at higher taxonomic levels (e.g., Lepidoptera), we repeated the above procedure described for family at the order (see Supplementary Text) and kingdom level.
Supplementary Materials
Supplementary Text
In addition to family-level effect sizes, we performed the analysis at the order level, and found similar heterogeneous results. Among the 128 orders, a total of 45 had some evidence of an effect of body size on urban affinity (14 weak, 6 moderate, and 25 strong). Some of the orders with the strongest positive effect size included Sapindales (dicots, soapberry plants) and Columbiformes (birds, doves and pigeons), and orders with the strongest negative effect sizes included Coleoptera (insects, beetles) and Piciformes (birds, woodpeckers). Of note are the differential responses down the taxonomic guilds, where some families can show contrasting results, but there may be a strong effect when looking at the order level, or higher (e.g., Fig. S2).

We used subrealms as our geographical aggregation.
Subrealms were quantified from aggregating bioregions as identified by One Earth (see more here: https://www.oneearth.org/bioregions/). The subrealms level was chosen after exploring the tradeoff between accounting for geographic differences in urban affinity and the number of species that could be included.

Violin plots showing the distribution of urban affinity values by kingdom across the 12 subrealms with the greatest sample sizes.

Violin plots showing the distribution of urban affinity values by class across the 12 subrealms with the greatest sample size.
Only classes represented by ≥ 50 species within a subrealm are included.

Violin plots showing the distribution of urban affinity values by order across the 9 subrealms with the greatest sample size.
Only orders represented by ≥ 50 species within a subrealm are included.

An illustration of the species-specific distribution of observations and the VIIRS values, in average radiance, of those observations for six different species within the Great European Forests subrealm.
Of note is that the urban affinity is not shown, as some are negative values, but these values are shown in the text.

The distribution of Magnolia warbler Setophaga magnolia observations and the VIIRS values, in average radiance, of those observations in four different subrealms.
Shown using dashed lines are the species-specific mean (green), the subrealm-specific mean of VIIRS (violet), and the resulting urban affinity measure (yellow).

The total number of species for which we calculated urban affinity scores, stratified by subrealm and shown separately for Animalia (top) and Plantae (bottom).
The subrealms with their names are shown in Figure S1. The dataset of species’ urban affinity scores is provided in Table S1.

The total number of subrealms for which a species had an urban affinity score.
The majority of species (64%) only had an urban affinity score from one subrealm, but the range was from 1 to 34.

An illustrative example, showing the relative urban affinity scores for Hymenoptera in the Northeast American Forests subrealm.
The plot is for illustrative purposes and the values for each species can be found in Data S1.

An illustrative example, showing the relative urban affinity scores for Lepidoptera in the Southeast Asian Forests subrealm.
The plot is for illustrative purposes and the values for each species can be found in Data S1.

An illustrative example, showing the relative urban affinity scores for Asterales in the Scandinavia & West Boreal Forests subrealm.
The plot is for illustrative purposes and the values for each species can be found in Data S1.

A summary of the number of species, shown per class, gained through taxonomic harmonization, and therefore included in the analysis dataset.

The number of taxa, on a log10-transformed scale.
These can be found in Table S3.

We chose to model each taxonomic group (i.e., family, order, class, phylum, and kingdom) independently of one another to avoid the influence of where individual families could have no effect but result in a positive effect if modeled jointly.
The top panel shows simulated raw data for two families; the middle panel shows the posterior distribution of a bayesian model fit for each of these families separately; the bottom panel shows the posterior distribution of a bayesian model fit for a model including family as a random effect and for a model not including family as a random effect.

An illustrative example showing the influence of using a random slope for body size, by showing the (A) Interaction between body size (scaled and log10 transformed) and body size measurement type (metadata; see Methods for details) for the family Accipitridae.
Facets represent different types of body size metrics used in the dataset, labeled with a letter identifier and corresponding sample size (n). Lines represent predicted urban affinity based on body size, with 95% credible intervals shown as shaded ribbons. These are extracted from a model fit with an interaction between metadata and body size to purposefully investigate the influence of metadata and the relationship with body size. (B) Posterior distributions of the slope for body size (scaled and log10 transformed) under two model structures: V1 includes a random slope for body size by subrealm and a random intercept for metadata (as presented in main results), while V2 adds a random slope for body size by metadata. The inclusion of this additional random slope in V2 increases uncertainty and pulls slope estimates toward zero, particularly when data are sparse within body size measurement types as illustrated here. Also see Fig. S15.

An illustrative example showing the influence of using a random slope for body size, by showing the (A) Interaction between body size (scaled and log10 transformed) and body size measurement type (metadata; see Methods for details) for the family Apidae.
Facets represent different types of body size metrics used in the dataset, labeled with a letter identifier and corresponding sample size (n). Lines represent predicted urban affinity based on body size, with 95% credible intervals shown as shaded ribbons. These are extracted from a model fit with an interaction between metadata and body size to purposefully investigate the influence of metadata and the relationship with body size. (B) Posterior distributions of the slope for body size (scaled and log10 transformed) under two model structures: V1 includes a random slope for body size by subrealm and a random intercept for metadata (as presented in main results), while V2 adds a random slope for body size by metadata. The inclusion of this additional random slope in V2 increases uncertainty and pulls slope estimates toward zero, particularly when data are sparse within body size measurement types as illustrated here. Also see Fig. S14.

A list of 41 potential ‘types’ of body size that were used for potential inclusion in our body size dataset.
We aimed to incorporate as many types of body size measures as possible and were not restrictive in our searching for body size measures.
Data availability
All data analysis was conducted in R statistical software and relied heavily on tidyverse (Wickham et al. 2019). The DOI representing our download is: https://doi.org/10.15468/dl.4dcbgt. Our processing of the GBIF data to quantify urban scores is available here: https://github.com/coreytcallaghan/body_size_vs_urban_tolerance. Not all body size data can be openly shared due to copyright restrictions, however the freely available dataset, cleaned and processed for our analysis is available here: https://github.com/coreytcallaghan/body_size_vs_urban_tolerance. In this repository we did provide reproducible data and code, albeit not for the entire dataset of body sizes. We will archive a cleaned version of this repository in Zenodo upon acceptance of this manuscript.
Acknowledgements
We thank Tim Robertson and the GBIF support team in supplying avro files of the GBIF download (https://doi.org/10.15468/dl.9ufars) for upload to our personal Google Big Query. Henrique M. Pereira provided helpful discussion in the early stages of this project. We thank the following people for help in qualitatively assessing our proxy for urban affinity: Luis Aguirre, Timothy Bonebrake, Jason Bried, Alex Córdoba-Aguilar, Michael Crossley, Wouter Deconinck, Geert De Knijf, Tim Gardiner, Michael Greenfield, Ralf Gyselings, Frederik Hendrickx, Axel Hochkirch, Roy Kleukers, Anton Kristin, Paulo Lemos, André Victor Lucci Freitas, Onildo João Marini Filho, Daniele Matenaar, Elisa Montes-Fuentemayor, Tara Murray, Howon Rhee, Leslie Ries, Szabolcs Sáfián, Ann Swengel, Scott Swengel, Pieter Vantieghem, Wade Worthen. We thank the following people for supplying unpublished data of body sizes: Roel van Klink, Michelle Tseng, Erik Öckinger, Philip Barton, Werner Ulrich, Axel Höchkirch, Thomas Sherratt, Michiel Wallis de Vries, Lea Heidrich, Jörg Müller, Robert Tropek, Maldwyn Evans, Martin Gossner, Bernhard Hausdorf, Stano Pekar, Carlo Seifert, Onildo João Marini Filho, Sei-Woong Choi, Dominik Rabl, Markus Franzén, Elena Piano, Derek Hennen. CTC, DEB, IS acknowledge funding of iDiv via the German Research Foundation grant DFG FZT 118. CTC was supported in part by a Marie Skłodowska-Curie Individual Fellowship grant 891052 and was supported in part by the intramural research program of the U.S. Department of Agriculture, National Institute of Food and Agriculture, Hatch FLA-FTL-006297. VS was supported by Georgetown University, a U.S. National Science Foundation Graduate Research Fellowship grant 1937959, and a David H. Smith Conservation Research Fellowship. LHA was supported by the Academy of Finland grant 340280.
Additional information
Statement of authorship
CTC, DEB, TM conceptualized the project and developed project methodology. CTC, TM, VS, JHW, BMM conducted analyses. CTC conducted project administration and supervision. CTC, DEB, TM wrote the original draft, and CTC, DEB, VS, BMM, LA, IS, JHW, TM were involved in review and editing.
Additional files
References
- 1.Evolution of life in urban environmentsScience 358:eaam8327https://doi.org/10.1126/science.aam8327PubMedGoogle Scholar
- 2.Mapping global urban land for the 21st century with data-driven simulations and shared socioeconomic pathwaysNature Communications 11:3202https://doi.org/10.1038/s41467-020-15788-7PubMedGoogle Scholar
- 3.Global forecasts of urban expansion to 2030 and direct impacts on biodiversity and carbon poolsProceedings of the National Academy of Sciences 109:16083–16088https://doi.org/10.1073/pnas.1211658109PubMedGoogle Scholar
- 4.Adaptive evolution in cities: Progress and misconceptionsTrends in Ecology & Evolution 36:239–257https://doi.org/10.1016/j.tree.2020.11.002PubMedGoogle Scholar
- 5.Global urban environmental change drives adaptation in white cloverScience 375:1275–1281https://doi.org/10.1126/science.abk0989PubMedGoogle Scholar
- 6.Land use and avian species diversity along an urban gradientEcological Applications 6:506–519https://doi.org/10.2307/2269387Google Scholar
- 7.Urbanization reshapes a food webJournal of Animal Ecology 89:808–816https://doi.org/10.1111/1365-2656.13136PubMedGoogle Scholar
- 8.Getting ahead of the curve: cities as surrogates for global changeProceedings of the Royal Society B 285https://doi.org/10.1098/rspb.2018.0643PubMedGoogle Scholar
- 9.Avian diversity and function across the world’s most populous citiesEcology Letters 26:1301–1313https://doi.org/10.1111/ele.14238PubMedGoogle Scholar
- 10.Urbanization, climate and species traits shape mammal communities from local to continental scalesNature Ecology & Evolution 7:1654–1666https://doi.org/10.1038/s41559-023-02166-xPubMedGoogle Scholar
- 11.Hierarchical filters determine community assembly of urban species poolsEcology 97:2962–2963https://doi.org/10.1002/ecy.1535PubMedGoogle Scholar
- 12.Body size variation in insects: a macroecological perspectiveBiological Reviews 85:139–169https://doi.org/10.1111/j.1469-185x.2009.00097.xPubMedGoogle Scholar
- 13.Effects of size and temperature on metabolic rateScience 293:2248–2251https://doi.org/10.1126/science.1061967PubMedGoogle Scholar
- 14.Toward a metabolic theory of ecologyEcology 85:1771–1789https://doi.org/10.1890/03-9000Google Scholar
- 15.Body-size shifts in aquatic and terrestrial urban communitiesNature 558:113–116https://doi.org/10.1038/s41586-018-0140-0PubMedGoogle Scholar
- 16.Rapid evolution of seed dispersal in an urban environment in the weed Crepis sanctaProceedings of the National Academy of Sciences 105:3796–3799https://doi.org/10.1073/pnas.0708446105PubMedGoogle Scholar
- 17.Urbanisation generates multiple trait syndromes for terrestrial animal taxa worldwideNature Communications 14:4751https://doi.org/10.1038/s41467-023-39746-1PubMedGoogle Scholar
- 18.Urbanisation, plant traits, and the composition of urban florasPerspectives in Plant Ecology, Evolution and Systematics 17:78–86https://doi.org/10.1016/j.ppees.2014.10.002Google Scholar
- 19.Warming-induced reductions in body size are greater in aquatic than terrestrial speciesEcology 109:19310–19314https://doi.org/10.1073/pnas.1210460109PubMedGoogle Scholar
- 20.The broad footprint of climate change from genes to biomes to peopleScience 354:aaf7671https://doi.org/10.1126/science.aaf7671PubMedGoogle Scholar
- 21.Validation of globally-applicable method to measure urban tolerance of birds using citizen science dataEcological Indicators 120:106905https://doi.org/10.1016/j.ecolind.2020.106905Google Scholar
- 22.Large-scale spatial variability in urban tolerance of birdsJournal of Animal Ecology 92:403–416https://doi.org/10.1111/1365-2656.13862PubMedGoogle Scholar
- 23.Traits shaping urban tolerance in birds differ around the worldCurrent Biology 33:1677–1688https://doi.org/10.1016/j.cub.2023.03.024PubMedGoogle Scholar
- 24.Species abundance distributions: Moving beyond single prediction theories to integration within an ecological frameworkEcology Letters 10:995–1015https://doi.org/10.1111/j.1461-0248.2007.01094.xPubMedGoogle Scholar
- 25.The commonness, and rarity, of speciesEcology 29:254–283https://doi.org/10.2307/1930989Google Scholar
- 26.Unveiling global species abundance distributionsNature Ecology & Evolution 7:1600–1609https://doi.org/10.1038/s41559-023-02173-yPubMedGoogle Scholar
- 27.Avoid, adapt or exploit: Re-visiting bird responses to urbanization using a novel landscape approachGlobal Ecology and Conservation 48:e02735https://doi.org/10.1016/j.gecco.2023.e02735Google Scholar
- 28.Why are exotic birds so successful in urbanized environments?In:
- Murgui E
- Hedblom M
- 29.Habitat influences on urban avian assemblagesIbis 151:19–39https://doi.org/10.1111/j.1474-919X.2008.00898.xGoogle Scholar
- 30.Urbanization drives community shifts towards thermophilic and dispersive species at local and landscape scalesGlobal Change Biology 23:2554–2564https://doi.org/10.1111/gcb.13606Google Scholar
- 31.Increased body size along urbanization gradients at both community and intraspecific level in macro-mothsGlobal Change Biology 24:3837–3848https://doi.org/10.1111/gcb.14151Google Scholar
- 32.Magnitude of urban heat islands largely explained by climate and populationNature 573:55–60https://doi.org/10.1038/s41586-019-1512-9PubMedGoogle Scholar
- 33.Interactions between urban heat islands and heat wavesEnvironmental Research Letters 13:034003https://doi.org/10.1088/1748-9326/aa9f73Google Scholar
- 34.Urban areas may serve as habitat and corridors for dry-adapted, head tolerant species; an example from antsUrban Ecosystems 14:135–163https://doi.org/10.1007/s11252-010-0150-7Google Scholar
- 35.Physiological thermal limits predict differential responses of bees to urban heat-island effectsBiology Letters 13:20170125https://doi.org/10.1098/rsbl.2017.0125PubMedGoogle Scholar
- 36.Urban structure and environment impact plant species richness and floristic composition a Central European cityUrban Ecosystems 25:149–163https://doi.org/10.1007/s11252-021-01140-4Google Scholar
- 37.Cities as sanctuariesFrontiers in Ecology and the Environment 21:251–259https://doi.org/10.1002/fee.2637Google Scholar
- 38.Data from public and governmental databases show that a large proportion of the regional animal species pool occur in cities in GermanyJournal of Urban Ecology 8:juac002https://doi.org/10.1093/jue/juac002Google Scholar
- 39.Biodiversity and body size are linked across metazoansProceedings of the Royal Society B: Biological Sciences 276:2209–2215https://doi.org/10.1098/rspb.2009.0245PubMedGoogle Scholar
- 40.Community science data suggest the most common raptors (Accipitridae) in urban centres are smaller, habitat-generalist speciesIbis 164:771–784https://doi.org/10.1111/ibi.13047Google Scholar
- 41.Smaller Australian raptors have greater urban toleranceScientific Reports 13https://doi.org/10.1038/s41598-023-38493-zPubMedGoogle Scholar
- 42.Temperature and organism size-A biological law for ectotherms?Advances in Ecological Research 25:1–58https://doi.org/10.1016/s0065-2504(08)60212-3Google Scholar
- 43.Consequences of urban living: Urbanization and ground beetlesCurrent Landscape Ecology Reports 6:9–21https://doi.org/10.1007/s40823-020-00060-xGoogle Scholar
- 44.Urbanization-driven homogenization is more pronounced and happens at wider spatial scale sin nocturnal and mobile flying insectsGlobal Ecology and Biogeography 28:1440–1455https://doi.org/10.1111/geb.12969Google Scholar
- 45.Using citizen science data to define and track restoration targets in urban areasJournal of Applied Ecology 56:1998–2006https://doi.org/10.1111/1365-2664.13421Google Scholar
- 46.Urbanisation tolerance and the loss of avian diversityEcology Letters 17:942–950https://doi.org/10.1111/ele.12297PubMedGoogle Scholar
- 47.Effects of urbanisation and landscape heterogeneity mediated by feeding guild and body size in a community of coprophilous beetlesUrban Ecosystems 23:1063–1077https://doi.org/10.1007/s11252-020-00997-1Google Scholar
- 48.Plant traits and extinction in urban areas: A meta-analysis of 11 citiesGlobal Ecology and Biogeography 20:509–219https://doi.org/10.1111/j.1466-8238.2010.00633.xGoogle Scholar
- 49.The ecosystem services of urban soils: A reviewGeoderma 395:115076https://doi.org/10.1016/j.geoderma.2021.115076Google Scholar
- 50.The effects of urbanization on plant phenology depends on regional temperaturesNature Ecology & Evolution 3:1661–1667https://doi.org/10.1038/s41559-019-1004-1PubMedGoogle Scholar
- 51.Urbanization-driven changes in web building and body size in an orb web spiderJournal of Animal Ecology 88:79–91https://doi.org/10.1111/1365-2656.12909PubMedGoogle Scholar
- 52.Ecological drivers of global gradients in avian dispersal inferred from wing morphologyNature Communications 11:2463https://doi.org/10.1038/s41467-020-16313-6PubMedGoogle Scholar
- 53.Hand-wing index as a surrogate for dispersal ability: The case of the Emberizoidae (Aves: Passeriformes) radiation. Biological Journal of the Linnean Society 137:137–144https://doi.org/10.1093/biolinnean/blac071Google Scholar
- 54.Great tits feed their nestlings with more but smaller prey items and fewer caterpillars in cities than in forestsScientific Reports 11https://doi.org/10.1038/s41598-021-03504-4PubMedGoogle Scholar
- 55.Low foraging rates drive large insectivorous bats away from urban areasGlobal Change Biology 30:e17063https://doi.org/10.1111/gcb.17063PubMedGoogle Scholar
- 56.Size-specific interaction patterns and size matching in a plant–pollinator interaction webAnnals of Botany 103:1459–1469https://doi.org/10.1093/aob/mcp027PubMedGoogle Scholar
- 57.Rapid response to artificial selection on flower size in PhloxHeredity 90:336–342https://doi.org/10.1038/sj.hdy.6800249PubMedGoogle Scholar
- 58.Demography, traits and vulnerability to urbanization: can we make generalizations?Journal of Applied Ecology 52:1455–1464https://doi.org/10.1111/1365-2664.12521Google Scholar
- 59.How species traits and affinity to urban land use control large-scale species frequencyDiversity and Distributions 15:533–546https://doi.org/10.1111/j.1472-4642.2009.00561.xGoogle Scholar
- 60.Context-dependence of urban forest vegetation invasion level and alien species’ ecological successForests 10https://doi.org/10.3390/f10010026Google Scholar
- 61.Experimental evidence that behavioral nudges in citizen science projects can improve biodiversity dataBioScience 74:302–313https://doi.org/10.1093/biosci/biad012Google Scholar
- 62.A tiny fraction of all species forms most of nature: Rarity as a sticky stateProceedings of the National Academy of Sciences 121:e2221791120https://doi.org/10.1073/pnas.2221791120PubMedGoogle Scholar
- 63.A comparison of the urban flora of different phytoclimatic regions in ItalyGlobal Ecology and Biogeography Letters 7:367–378https://doi.org/10.2307/2997684Google Scholar
- 64.A conceptual framework for predicting the effects of urban environments on floraJournal of Ecology 97:4–9https://doi.org/10.1111/j.1365-2745.2008.01460.xGoogle Scholar
- 65.A trait-based conceptual framework to examine urban biodiversity, socio-ecological filters, and ecosystem services linkagesnpj Urban Sustainability 2:32https://doi.org/10.1038/s42949-022-00077-7Google Scholar
- 66.Urbanisation drives inter- and intraspecific variation in flight-related morphological traits of aquatic insects at different landscape scalesInsect Conservation and Diversity 17:287–303https://doi.org/10.1111/icad.12703Google Scholar
- 67.Environmental filtering of life-history trait diversity in urban populations of Arabidopsis thalianaJournal of Ecology 112:14–27https://doi.org/10.1111/1365-2745.14211Google Scholar
- 68.Butterfly biodiversity in the city is driven by the interaction of the urban landscape and species traits: a call for contextualised managementLandscape Ecology 37:1–12https://doi.org/10.1007/s10980-021-01347-yGoogle Scholar
- 69.Thermal flexibility and a generalist life history promote urban affinity in butterfliesGlobal Change Biology 27:3532–3546https://doi.org/10.1111/gcb.15670Google Scholar
- 70.Avian trait specialization is negatively associated with urban toleranceOikos 129:1541–1551https://doi.org/10.1111/oik.07356Google Scholar
- 71.VIIRS night-time lightsInternational Journal of Remote Sensing 38:5860–5879https://doi.org/10.1080/01431161.2017.1342050Google Scholar
- 72.Monitoring urbanization dynamics in India using DMSP/OLS night time lights and SPOT-VGT dataInternational Journal of Applied Earth Observation and Geoinformation 23:49–61https://doi.org/10.1016/j.jag.2012.11.005Google Scholar
- 73.Can night-time light data identify typologies of urbanization? A global assessment of successes and failuresRemote Sensing 5:3476–3494https://doi.org/10.3390/rs5073476Google Scholar
- 74.Inter-calibration and urban light index of DMSP-OLS night-time data for evaluating the urbanization process in Australian capital territoryIn:
- Kumar P
- Rani M
- Chandra Pandey P
- Sajjad H
- Chaudhary B
- 75.Nighttime lights–innovative approach for identification of temporal and spatial changes in population distributionJournal of the Geographical Institute “Jovan Cvijić”, SASA 72:51–66https://doi.org/10.2298/IJGI2201051PGoogle Scholar
- 76.A global record of annual urban dynamics (1992–2013) from nighttime lightsRemote Sensing of Environment 219:206–220https://doi.org/10.1016/j.rse.2018.10.015Google Scholar
- 77.Adaptive modeling of satellite-derived nighttime lights time-series for tracking urban change processes using machine learningRemote Sensing of Environment 298https://doi.org/10.1016/j.rse.2023.113818Google Scholar
- 78.Applications of satellite remote sensing of nighttime light observations: Advances, challenges, and perspectivesRemote Sensing 11:1971https://doi.org/10.3390/rs11171971Google Scholar
- 79.Characterizing urban land changes of 30 global megacities using nighttime light time series stacksISPRS Journal of Photogrammetry and Remote Sensing 173:10–23https://doi.org/10.1016/j.isprsjprs.2021.01.002Google Scholar
- 80.Mapping urban dynamics (1992–2018) in Southeast Asia using consistent nighttime light data from DMSP and VIIRSRemote Sensing of Environment 248:111980https://doi.org/10.1016/j.rse.2020.111980Google Scholar
- 81.Google Earth Engine: Planetary-scale geospatial analysis for everyoneRemote Sensing of Environment 202:18–27https://doi.org/10.1016/j.rse.2017.06.031Google Scholar
- 82.Bioregions: Nature’s map of the earthOne Earth
- 83.Discovery of the Himalayan giant honey bee, Apis laboriosa, in Thailand: a major range extensionApidologie 55https://doi.org/10.1007/s13592-024-01069-5Google Scholar
- 84.Molluscs from South America to the World: Who and Where Are They?Biology 14:1538https://doi.org/10.3390/biology14111538PubMedGoogle Scholar
- 85.Avian trait specialization is negatively associated with urban toleranceOikos 129:1541–1551https://doi.org/10.1111/oik.07356Google Scholar
- 86.Species’ traits drive amphibian tolerance to anthropogenic habitat modificationGlobal Change Biology 27:3120–3132https://doi.org/10.1111/gcb.15623Google Scholar
- 87.TRY plant trait database – enhanced coverage and open accessGlobal Change Biology 26:119–188https://doi.org/10.1111/gcb.14904PubMedGoogle Scholar
- 88.COMBINE: a coalesced mammal database of intrinsic and extrinsic traitsEcology 102:e03344https://doi.org/10.1002/ecy.3344PubMedGoogle Scholar
- 89.The odonate phenotypic database, a new open data resource for comparative studies of an old insect orderScientific Data 6:1–6https://doi.org/10.1038/s41597-019-0318-9PubMedGoogle Scholar
- 90.taxize: taxonomic search and retrieval in R, version 2R language https://doi.org/10.12688/f1000research.2-191.v2PubMedGoogle Scholar
- 91.brms: An R package for Bayesian Multilevel Models using StanJournal of Statistical Software 80:1–28https://doi.org/10.18637/jss.v080.i01Google Scholar
- 92.Advanced Bayesian Multilevel Modeling with the R Package brmsThe R Journal 10:395–411https://doi.org/10.32614/rj-2018-017Google Scholar
- 93.Bayesian Item Repsonse Modeling in R with brms and StanJournal of Statistical Software 100:1–54https://doi.org/10.18637/jss.v100.i05Google Scholar
- 94.The dangers of being a small, oligotrophic and light demanding freshwater plant across a spatial and historical eutrophication gradient in southern ScandinaviaFrontiers in Plant Science 9https://doi.org/10.3389/fpls.2018.00066PubMedGoogle Scholar
- 95.Inverted invasions: Native plants can frequently colonise urban and highly disturbed habitatsAustral Ecology 44:702–712https://doi.org/10.1111/aec.12719Google Scholar
Article and author information
Author information
Version history
- Sent for peer review:
- Preprint posted:
- Reviewed Preprint version 1:
- Reviewed Preprint version 2:
Cite all versions
You can cite all versions using the DOI https://doi.org/10.7554/eLife.109047. This DOI represents all versions, and will always resolve to the latest one.
Copyright
© 2025, Callaghan et al.
This article is distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use and redistribution provided that the original author and source are credited.
Metrics
- views
- 687
- downloads
- 49
- citations
- 0
Views, downloads and citations are aggregated across all versions of this paper published by eLife.