To test the hypothesis that particle composition has a stronger influence on the community structure of particle‐attached than free‐living bacteria, elemental (C/N, δ13C, and δ15N) and chemical composition of particles and the size‐fractionated bacterial community composition were examined along the particle density gradient from the Pearl River to the open basin in the South China Sea. Microbial communities were collected at the three size fractions of 0.2–0.8, 0.8–3, and >3 µm, and the community composition was analyzed using high‐throughput sequencing of the 16S rRNA gene (V3–V4 regions). Multivariate analysis evaluating the similarities of bacterial community composition and chemical composition of particles revealed their general consistent spatial variations along the particle density gradient from freshwater to the sea basin. However, compositions of particulate organic matter were more strongly related to the free living than to the particle‐attached bacterial community composition, which was composed of relatively abundant anaerobic bacteria and those taxa preferring low‐oxygen conditions. This latter result might be caused by low‐oxygen microzones in particles. Community network models further revealed tighter interactions within the particle‐attached than in free‐living bacterial communities, suggesting that a relatively confined space in particles is more favorable for interactions within the community. These analyses indicated that particle microniche properties might be important in shaping particle‐attached community structure. In contrast, particulate organic matter compositions significantly influenced the free‐living bacterial community probably through the release of labile or semilabile organic matter from particles contributing to the bioavailability of dissolved organic carbon.