Community structure of many systems changes across space in many different ways (e.g., gradual, random or clumpiness). Accessing patterns of species spatial variation in ecosystems characterized by strong environmental gradients, such as estuaries, is essential to provide information on how species respond to them and for identification of potential underlying mechanisms. We investigated how environmental filters (i.e., strong environmental gradients that can include or exclude species in local communities), spatial predictors (i.e., geographical distance between communities) and temporal variations (e.g., different sampling periods) influence benthic macroinfaunal metacommunity structure along salinity gradients in tropical estuaries. We expected environmental filters to explain the highest proportion of total variation due to strong salinity and sediment gradients, and the main structure indicating species displaying individualistic response that yield a continuum of gradually changing composition (i.e., Gleasonian structure). First we identified benthic community structures in three estuaries at Todos os Santos Bay in Bahia, Brazil. Then we used variation partitioning to quantify the influences of environmental, spatial and temporal predictors on the structures identified. More frequently, the benthic metacommunity fitted a quasi-nested pattern with total variation explained by the shared influence of environmental and spatial predictors, probably because of ecological gradients (i.e., salinity decreases from sea to river). Estuarine benthic assemblages were quasi-nested likely for two reasons: first, nested subsets are common in communities subjected to disturbances such as one of our estuarine systems; second, because most of the estuarine species were of marine origin, and consequently sites closer to the sea would be richer while those more distant from the sea would be poorer subsets. Understanding how community structure of many systems changes across space and how mechanisms, driven mostly by dispersal and environmental filters, determine species distribution patterns in local communities is a central question in community ecology 1-3. Testing how community assembly mechanisms determine species distribution has also become important in metacommunity ecology, an offshoot of community ecology, which has emerged to describe processes occurring at local and regional scales 1,4. A metacommunity can be defined as a set of local communities potentially, but not necessarily, linked by the dispersal of multiple, likely interacting, species 5,6. Assessing processes that affect metacommunity composition particularly in ecosystems characterized by strong environmental gradients is important to provide useful information on species responses to environmental changes across ecological gradients. To understand patterns of spatial variation in species composition, two different and complementary metacommunity approaches have been proposed 7 : one focusing on patterns 7,8 and another focusing on mechanisms 1,9. The patt...