Dispersal is a key process in metacommunity dynamics, allowing the maintenance of diversity in complex community networks. Geographic distance is usually used as a surrogate for connectivity implying that communities that are closely located are considered more prone to exchange individuals than distant communities. However, in some natural systems, organisms may be subjected to directional dispersal (air or water flows, particular landscape configuration), possibly leading close communities to be isolated from each other and distant communities to be connected. Using geographic distance as a proxy for realised connectivity may then yield misleading results regarding the role of dispersal in structuring communities in such systems. Here, we quantified the relative importance of flow connectivity, geographic distance, and environmental gradients to explain polychaete metacommunity structure along the coasts of the Gulf of Lions (northwest Mediterranean Sea). Flow connectivity was estimated by Lagrangian particle dispersal simulations. Our results revealed that this metacommunity is strongly structured by the environment at large spatial scales, and that both flow connectivity and geographic distance play an important role within homogeneous environments at smaller spatial scales. We thus strongly advocate for a wider use of connectivity measures, in addition to geographic distance, to study spatial patterns of biological diversity (e.g. distance decay) and to infer the processes behind these patterns at different spatial scales.SynthesisEverything is connected, but connections are seldom accurately quantified. Biological communities are often studied separately, using observations, experiments and models to unravel local dynamics of organisms interacting with each other. However, regional processes such as dispersal through ocean and air circulation, likely to connect distant communities and influence their local dynamics, are not always accounted for, or, at best, used as an homogeneous and distance‐related factor. Ocean models have being extensively developed and validated during the past decades with the increasing availability of accurate meteorological data. Using such model outputs, precise quantifi cation of exchange rates of organisms between communities was performed in a marine Mediterranean coastal area. Jointly with local environmental and biological data, these results were used to quantify the effects of realistic connectivity on local and regional polychaete community structure, and revealed that the environmental gradient, geographic distance, and connectivity were responsible for community structure at different spatial scales.