Along the river-sea continuum, microorganisms are directionally dispersed by water flow while being exposed to strong environmental gradients. To compare the two assembly mechanisms that may strongly and differently influence metacommunity dynamics, namely homogenizing dispersal and heterogeneous selection, we characterized the total (16S rRNA gene) and putatively active (16S rRNA transcript) bacterial communities in the Pearl River-South China Sea Continuum, during the wet (summer) and dry (winter) seasons using high-throughput sequencing. Moreover, well-defined sampling was conducted by including freshwater, oligohaline, mesohaline, polyhaline, and marine habitats. We found that heterogeneous selection exceeded homogenizing dispersal in both the total and active fractions of bacterial communities in two seasons. However, homogeneous selection was prevalent (the dominant except in active bacterial communities during summer), which was primarily due to the bacterial communities' tremendous diversity (associated with high rarity) and our specific sampling design. In either summer or winter seasons, homogeneous and heterogeneous selection showed higher relative importance in total and active communities, respectively, implying that the active bacteria were more responsive to environmental gradients than were the total bacteria. In summary, our findings provide insight into the assembly of bacterial communities in natural ecosystems with high spatial connectivity and environmental heterogeneity.