AimUnderstanding the roles of deterministic and stochastic processes in community assembly is essential for gaining insights into the biogeographical patterns of biodiversity. However, the way community assembly processes operate is still not fully understood, especially in oceanic islands. In this study, we examine the importance of assembly processes in shaping diatom communities in islands and continents, while also investigating the influence of climate and local water chemistry variables on species distributions.LocationGlobal.TaxonStream benthic diatoms.MethodsWe used diatom datasets from five continents and 19 islands and applied beta diversity analyses with a null model approach and hierarchical joint species distribution modelling. To facilitate comparisons with continents, we used continental area equivalents (CAEs), which represent continental subsets with comparable areas and the same number of study sites as their corresponding islands counterparts.ResultsWe found that homogeneous selection (i.e., communities being more similar than the random expectation) was the dominant assembly process within islands whereas stochastic processes tended to be more important within continents. In addition, assembly processes were influenced by study scale and island isolation. Climatic variables showed a greater influence on species distribution than local factors. However, in islands, local environmental variables had a greater impact on the distributions of unique taxa as opposed to non‐unique taxa.Main ConclusionsWe observed that the assembly processes of diatom communities were complex and influenced by a combination of deterministic and stochastic forces, which varied across spatial scales. In islands, there was no universal pattern of assembly processes, given that their influence depends on abiotic conditions such as area, isolation, and environmental heterogeneity. In addition, the sensitivity of species occurring uniquely in islands to local environmental variables suggests that they are perhaps less vulnerable to climatic changes but may be more influenced by changes in local physicochemistry.