The release of anthropogenic pollution into freshwater ecosystems has largely transformed biodiversity and its geographical distribution patterns globally. However, for many communities including ecologically crucial ones such as zooplankton, it is largely unknown how different communities respond to environmental pollution. Collectively, dispersal and species sorting are two competing processes in determining the structure and geographical distribution of zooplankton communities in running water ecosystems such as rivers. At fine geographical scales, dispersal is usually considered as the dominant factor; however, the relative role of species sorting has not been evaluated well, mainly because significant environmental gradients rarely exist along continuously flowing rivers. The Chaobai River in northern China represents a rare system, where a significant environmental gradient exists at fine scales. Here, we employed high-throughput sequencing to characterize complex zooplankton communities collected from the Chaobai River, and tested the relative roles of dispersal and species sorting in determining zooplankton community structure along the pollution gradient. Our results showed distinct patterns of zooplankton communities along the environmental gradient, and chemical pollutant-related factors such as total phosphorus and chlorophyll-a were identified as the major drivers for the observed patterns. Further partial redundancy analyses showed that species sorting overrode the effect of dispersal to shape local zooplankton community structure. Thus, our results reject the dispersal hypothesis and support the concept that species sorting caused by local pollution can largely determine the zooplankton community structure when significant environmental gradients exist at fine geographical scales in highly polluted running water ecosystems.