The distance decay of community similarity (DDCS) is a pattern that is widely observed in both terrestrial and aquatic environments. There are three major perspectives for explaining the DDCS. Niche-based theories argue that as environmental conditions change, species are sorted according to their ability to adapt to new environmental conditions and habitats. The ecological neutral theory argues that community similarity decays due to ecological drift. Finally, the continuum hypothesis argues that niche and neutral factors are at the opposite ends of a continuum that ranges from competitive exclusion to stochastic exclusion. Most studies on the DDCS have been conducted on terrestrial ecosytems, and there are few data for riparian plant communities in riparian ecosystems. Here we assessed the association between niche-based and neutral factors and changes in community similarity measured by Sorensen’s index. As neutral variables, we used network distances and flow connection, and as niche-based variables, we selected Strahler order differences and precipitation differences. We used a hierarchical Bayesian approach to assess which of these three perspectives best supported the results. We used a high-quality dataset composed of 338 vegetation censuses conducted in eleven river basins along a sizeable environmental gradient in continental Portugal. We observed that changes in Sorensen indices were associated with all four covariates but to different degrees. Overall, the results suggest that community similarity changes are associated with environmental and neutral factors, supporting the continuum hypothesis.