Offshore coastal marine ranching ecosystems provide habitat for diverse and active bacterial communities. In this study, 16S rRNA gene sequencing and multiple bioinformatics methods were applied to investigate assembly dynamics and relationships in different habitats. The higher number of edges in the water network, more balanced ratio of positive and negative links, and more keystone species included in the co-occurrence network of water. Stochastic processes dominated in shaping gut and sediment community assembly (R