The present thesis deals with the understanding of the origins and the mechanisms of maintenance of biodiversity in natural landscapes, in particular by identifying key processes that define large-scale patterns of abundance and diversity. Biological communities often occur in spatially structured habitats where connectivity directly affects dispersal and metacommunity processes. Recent theoretical work suggests that dispersal constrained by the connectivity of specific habitat structures affects diversity patterns and species interactions. This is particularly relevant in dendritic networks epitomized by fluvial ecological corridors. This thesis addresses whether connectivity alone can explain observed features of biodiversity and selectively promote different components of community composition in river-like landscapes, such as local species richness or the among-community similarity. The relevance of this thesis lies in the major ecological challenges posed by the topic, and its fundamental importance to conservation biology. The studies pursued herein are also deemed relevant because of the influence of the spatial connectivity and dispersal on population dynamics and of the relevance of biodiversity to ecosystem functioning. Mechanisms of species coexistence were investigated with a blend of theoretical tools (broadly related to statistical mechanics and the theory of stochastic processes) and experimental work using laboratory microbial communities. The research tools ranged from aspects of modern coexistence theory in a local perspective to the recent concept of the metacommunity in spatial ecology, within a unified framework. The study of biodiversity in riverine ecosystems guided by observational data has been addressed by combining theoretical metacommunity models with laboratory experiments. The results are diverse. First, they show experimentally that connectivity per se shapes key components of biodiversity in metacommunities. Local dispersal in isotropic lattice landscapes homogenizes local species richness and leads to pronounced spatial persistence. By contrast, dispersal along dendritic landscapes leads to higher variability in local diversity and among-community composition. Although headwaters exhibit relatively lower species richness, they are crucial for the maintenance of regional biodiversity. By suitably arranging patch sizes within river-like networks the effect of local habitat capacity (i.e., the patch size) and dendritic connectivity on biodiversity can be experimentally disentangled in aquatic microcosm metacommunities. It is shown in this thesis that species coexistence and community assembly depend on intricate, non-trivial interactions of local community capacity and network positioning. Furthermore, an interaction of spatial arrangement of habitat capacity and dispersal along river-like networks also affects a key ecosystem descriptor, namely regional evenness. High regional evenness in community composition is fo