PAPERCommunity contribution
- Article
- Environmental microbiology
- Environmental Science & Technology
Divalent Cations and Chlorine Synergistically Reshape T6SS-Mediated Microbial Competition in Water Distribution System Biofilms
Tanghao Liu, Xiaohui Bai
Abstract
Microbial interactions shape the community structure and function in drinking water distribution system (DWDS) biofilms, yet how the dynamic competition is regulated in biofilms remains poorly understood. Here, we show that divalent cations (Ca2+, Mg2+) and chlorine in drinking water synergistically activate the type VI secretion system (T6SS) in opportunistic pathogens within biofilms. Field-collected biofilms serve as ecological hotspots that selectively enrich specific T6SS-harboring pathogens. Using simulated pipe systems and mutant validation, we further establish that divalent cations and chlorine enhance c-di-GMP signaling to promote T6SS-mediated colonization. This activation stimulates EPS production, whose polysaccharides mitigate T6SS attack, dampening the competitive advantage during mid-stage maturation but allowing gradual resurgence over extended succession. This divalent cation-chlorine-driven interplay shapes ecological succession, selectively retaining T6SS-proficient cells and establishing a “biofilm reservoir effect.” Under chlorine decay, T6SS-active pathogens can be released into bulk water, elevating exposure risks. Conversely, reducing divalent cations via nanofiltration suppresses T6SS across multiple pathogens, limiting reservoir accumulation and release. Our findings identify divalent cation availability as a key environmental signal associated with T6SS-mediated competition, linking water chemistry to pathogen persistence. This work suggests integrating membrane-based divalent cation removal with chlorine management as a chemistry-based strategy to mitigate microbial risks, advancing an integrated water quality paradigm for drinking water safety.
1. Introduction
Drinking water distribution systems (DWDS) sustain complex microbial ecosystems primarily housed within pipe-wall biofilms. (1, 2) These adherent communities constitute the dominant biomass in water supply networks, representing critical ecological niches where over 90% of microorganisms reside under the persistent oligotrophic and disinfectant-stressed conditions in treated water. (3) Biofilm dynamics directly impact water quality, as periodic detachment releases microbes into the bulk water, driving planktonic regrowth and elevating microbial risk at the point of use. (4, 5) Consequently, the factors governing biofilm assembly, stability, and pathogen containment are central to ensuring the microbiological integrity of distributed drinking water.
The resilience and structure of these biofilms are shaped by intricate microbial interspecies interactions. (6) In response to disinfectant stress, bacteria employ cooperative strategies such as quorum sensing (QS) to coordinate behavior, (7−9) enhancing aggregation and stimulating the production of protective extracellular polymeric substances (EPS). (10) This collective shift to a biofilm mode of growth enhances community tolerance, (11) such emphasis on cooperation overlooks the equally critical role of antagonistic interactions. (12) Existing studies have largely focused on cooperative or genetic exchange mechanisms, particularly QS and type IV secretion system (T4SS)-mediated horizontal gene transfer, (13) yet how competitive dynamics are modulated by the fluctuating physicochemical conditions in DWDS remains poorly understood. This gap is significant because competition ultimately determines which species, (14) particularly opportunistic pathogens, persist within the biofilm reservoir and pose risks to water safety.
A principal mechanism underlying such direct antagonism is the type VI secretion system (T6SS), a molecular weapon deployed by many Gram-negative bacteria. (15) Critically, T6SS-harboring organisms in DWDS are predominantly opportunistic pathogens, including Pseudomonas, (16)Burkholderia, (17) and Salmonella. (18) The T6SS acts as a cytoplasmic syringe, delivering toxic effector proteins into adjacent cells and thereby directly eliminating competitors while reshaping community composition. Its activity is tightly regulated by a network of environmental sensors. (19) Key signals known to modulate T6SS intersect with central stressors in DWDS. For instance, oxidative stress from chlorine disinfectants activates global regulators such as RpoS, which can upregulate both biofilm-related genes and T6SS components. (20) Simultaneously, divalent cation availability (e.g., Mg2+, Ca2+) is sensed through systems like PhoPQ and MgtC, (21, 22) influencing central metabolic states and the intracellular levels of the second messenger c-di-GMP, a pivotal switch that often concurrently upregulates biofilm matrix production and T6SS activity. (23) This regulatory coupling suggests a strategic adaptation in which environmental pressure promotes a dual investment in both offensive weaponry and defensive fortification. (21, 24, 25) Preliminary evidence supports this view: our prior work indicated that Mg2+ and reactive oxygen species can synergistically activate Salmonella Typhimurium (S. Tm) T6SS in vitro, (26) and field surveys confirm that T6SS hosts are widespread in water distribution pipelines. (1, 27) Nevertheless, a critical gap persists: how the integrated T6SS regulatory network responds to the concerted pressures of DWDS, specifically the interplay between dynamic ionic composition and persistent disinfectant residuals, and how this response dictates pathogen ecological success within mature biofilms remains virtually unknown.
Addressing this gap is urgent due to a paradigm shift in water treatment practice. The expanding use of membrane processes like nanofiltration (NF) and reverse osmosis (RO) dramatically reduces mineral ion content, (28, 29) creating scenarios where ion-depleted water is blended with or replaces conventional tap water in distribution networks. (30) This practice creates a novel and fluctuating ionic landscape within the existing, pre-laid pipe infrastructure, (31) with unknown ecological consequences for preexisting biofilm communities. Given the role of ions as key signals for T6SS regulation, such compositional shifts could fundamentally reprogram microbial competition and alter pathogen dynamics.
Here, we establish that drinking water ionic composition shapes pathogen dynamics by regulating T6SS-mediated competition. We demonstrate that divalent cations in drinking water synergize with chlorine to activate T6SS in opportunistic pathogens, which stimulates EPS production, forming a feedback loop that temporally constrains killing while allowing gradual T6SS resurgence over extended succession. Notably, we identify a “biofilm reservoir effect,” wherein T6SS-proficient cells are selectively retained on pipe surfaces while deficient mutants are shed. Conversely, divalent cation-reduced water from nanofiltration suppresses T6SS potential across biofilms, limiting pathogen reservoir accumulation and subsequent release. These findings position water ionic composition as a key determinant of pathogen persistence, providing a mechanistic rationale for using targeted water chemistry management to mitigate microbial risk in drinking water networks.
2. Materials and Methods
2.1. Field Samples Collection
Biofilms and bulk water samples were collected from three full-scale drinking water distribution systems in Shanghai. Sampling covered the entire flow path from treatment plant outlets to secondary water supply roof tanks. (32) Biofilm samples were obtained from two main distribution pipelines (unlined cast steel, diameters 300 and 500 mm) and four distal points with different pipe materials: polyethylene (PE), polypropylene random (PPR), and stainless steel (grades 304 and 316; diameter 50 mm). After draining residual water, biofilms were collected from four positions on the inner pipe wall (top, bottom, left, and right) using sterile tools, with a sampled area of 1 cm2 per position. The four subsamples were pooled and homogenized to eliminate positional bias within the pipe. The pooled biofilm was then suspended in phosphate-buffered saline (PBS), transported on ice, and stored at −80 °C. Water samples were collected following a standardized flushing protocol and stored under cold conditions for subsequent analysis.
2.2. Simulated Pipe System Setup and Experimental Design
A continuous-flow simulated plumbing system was constructed using PPR pipes and a peristaltic pump operating at 5 mL/min, representing the slow-flow and stagnation regimes typical of distal pipe sections and secondary water supply systems. The system consisted of three parallel independent pipes per group, with water delivered by a single peristaltic pump and distributed into the upper pipes. Samples from four positions were pooled and homogenized before analysis to eliminate positional variation. The system was operated at a constant 26 °C maintained by air conditioning. Total chlorine was maintained at 0.3 mg/L using sodium hypochlorite, which provides free chlorine and is representative of distal pipe sections 10 to 20 km from the treatment plant. (1) Monochloramine was prepared by mixing sodium hypochlorite with ammonium chloride at a Cl2:N molar ratio of 4:1 and measured by the DPD method. Unless otherwise specified, “chlorine” refers to free chlorine derived from sodium hypochlorite; monochloramine was used as a combined chlorine disinfectant in specific experiments. Total chlorine concentration was verified every 8 h (HACH Pocket Colorimeter II).
To model T6SS-mediated competition under DWDS-relevant conditions, we selected Salmonella entericaserovar Typhimurium (S. Tm) SL1344 and Pseudomonas aeruginosa (P. aeruginosa) PAO1, as field surveys showed that both genera are among the most abundant T6SS-harboring taxa in DWDS biofilms. (1)S. Tm provides a well-characterized c-di-GMP-T6SS regulatory axis, whereas P. aeruginosa harbors multiple T6SS clusters with distinct regulation. Two experimental scenarios were designed to model realistic water source switching: (1) Pre-colonization experiment: pipe coupons were placed in the system and exposed to flowing tap water (no ions removal) for 20 days, during which biofilms were established either naturally or with trace inoculation of S. Tm (10 cells/mL) or P. aeruginosa (20 cells/mL). The water source was then switched to RO water (S. Tm) or NF water (P. aeruginosa) for a 120-day maturation phase to assess the effect of ionic reduction on a pre-established, pathogen-containing biofilm. RO water was used for S. Tm to achieve maximal ion depletion for mechanistic dissection, whereas NF water was used for P. aeruginosa because it partially removes divalent cations while retaining monovalent ions and better represents municipal treatment practice. (2) Ambient biofilm experiment: To better mimic real distribution conditions, biofilms were allowed to form naturally without external pathogen addition. After initial colonization in tap water, the source was switched to NF water for maturation. This design tests how divalent cations-depleted water influences a complex, native biofilm community. The approach reflects the practical scenario where existing pipe biofilms encounter changed water chemistry due to water source switching or treatment upgrades.
2.3. Bacterial Strains, Genetic Manipulations and Growth Conditions
All bacterial strains and plasmids used are listed in Tables S1 and S2. S. Tm SL1344, including its T6SS-deficient ΔclpV mutant, was used as the primary model and was constructed previously (see Supplementary Note for details). The ΔclpV mutant lacks ClpV, an essential ATPase required for T6SS secretion. P. aeruginosa PAO1 served for comparative studies, and E. coli K-12 MG1655 acted as a prey strain in biofilm competition assays. Gene deletions in P. aeruginosa (ΔretS, ΔretS Δhcp1) were generated via allelic exchange using the suicide vector pK18-mob-sacB. (33, 34) The ΔretS mutant lacks the negative regulator RetS and exhibits constitutive T6SS activation, whereas the Δhcp1 and ΔretS Δhcp1 mutants are T6SS-deficient. To monitor T6SS promoter activity, the hcp1 promoter was cloned upstream of mCherry in pBBR1-MCS5-mCherry. (16) For complementation or overexpression, genes were cloned into the IPTG-inducible vector pET-28a(+), with expression induced by 0.5 mM IPTG. (35) In biofilm competition assays, a marked plasmid was introduced into wild-type S. Tm to distinguish it from its T6SS mutant. All strains were routinely grown in Lysogeny Broth (LB) at 37 °C (S. Tm, E. coli) or 30 °C (P. aeruginosa) with appropriate antibiotics: kanamycin (50 μg mL–1), tetracycline (100 μg mL–1), streptomycin (200 μg mL–1), irgasan (25 μg mL–1) or gentamicin (20 μg mL–1).
2.4. Viable Cell Enumeration and Biofilm Competition Assays
Total viable cells in water and biofilm were quantified using flow cytometry (stained with SYBR Green I/7-AAD) as previously described. (36) Specific strain counts were determined via plate counting on selective media. Dual-species biofilm competition was assessed in 24-well plates containing sterile coupons. Overnight cultures of predator (S. Tm or P. aeruginosa) and prey (E. coli) were mixed 1:1, diluted in test waters (RO, NF, tap water, or ion-supplemented RO water), and incubated statically for 120 h to allow biofilm formation under chlorine exposure. Biofilms were then dislodged by sonication and vortexing, serially diluted, and plated on selective media to enumerate each competitor. (37) T6SS-mediated killing was calculated as the difference in E. coli survival between wild-type and ΔclpV co-cultures. All experiments included three biological replicates.
2.5. Biofilm Characterization and EPS Analysis
Total biofilm biomass was quantified by crystal violet staining. For EPS extraction, biofilms were treated with 2 mM EDTA in NaCl at 60 °C for 30 min. The supernatant was analyzed for polysaccharides (phenol-sulfuric acid method, OD490), (38) proteins (Bradford assay, OD595), (39) and extracellular DNA (SYBR Green fluorescence with salmon sperm DNA standard). (40)
Colanic acid was measured using a colorimetric assay: (41) 200 μL of EPS supernatant was mixed with 900 μL sulfuric acid-water (6:1, v/v), boiled for 20 min, cooled, and absorbance read at 396 and 427 nm before and after adding 15 μL of 1 M cysteine hydrochloride (37 °C, 40 min). Concentration was calculated from differential absorbance against a fucose standard curve. To assess the role of matrix polysaccharides in T6SS competition, coupons from running pipes were treated with β-1,3-glucanase (0.4 U/mL) every 14 days during maturation. Parallel coupons were analyzed for polysaccharide content (phenol-sulfuric acid method) and β-1,3-glucan removal (Congo red staining, OD540) to confirm enzymatic efficacy. All experiments included three biological replicates.
2.6. Quantification of Intracellular c-di-GMP
Intracellular c-di-GMP was extracted using an optimized methanol-acetonitrile-water method. Biofilm cells were collected in PBS, disrupted with 0.2 mm glass beads (30 Hz, 2 min), and extracted with pre-chilled methanol:acetonitrile:water (2:2:1, v/v/v). After incubation on ice (15 min) and heating at 95 °C (20 min), samples were cooled, centrifuged (25,000 × g, 4 °C, 10 min), and the pellet was re-extracted twice without heating. Combined supernatants were vacuum freeze-dried, resuspended in 200 μL ultrapure water, and c-di-GMP was quantified using a Cayman Chemical ELISA kit. Three biological replicates were performed per condition.
2.7. RNA Extraction and Quantitative PCR
Total RNA was extracted using RNAiso Plus (Takara Bio) and purified with SPINeasy RNA Kit for Bacteria (MP Biomedicals) to remove residual genomic DNA. cDNA was synthesized with Hifair III Reverse Transcriptase (Yeasen Bio) using 100 ng of total RNA. Quantitative PCR was performed on a CFX Connect System using SYBR Green Master Mix (Yeasen Bio). Relative gene expression was calculated via the 2–ΔΔCT method with rpoB as the internal reference. All primers were either adopted from our previous work (26) or newly designed using NCBI Primer-BLAST and verified with Primer 5. Detailed primer sequences are listed in Table S3; amplification and melting curves are provided in Supplementary Figures S1 and S2, and standard-curve efficiencies in Supplementary Figure S3. MIQE 2.0-compliant information is provided in Supplementary Note 3.
2.8. Reactive Oxygen Species (ROS) Detection
S. Tm cells were harvested from biofilms by gentle washing and centrifugation. After resuspension in ice-cold buffer, intracellular ROS levels were measured using a commercial assay kit (Beyotime Biotechnology, S0033S).
2.9. DNA Extraction, 16S rRNA and Metagenomic Sequencing
For water samples, microorganisms from 5 L were collected on 0.22 μm polycarbonate membranes. For biofilm samples, biomass was freeze-dried. DNA was extracted and purified using the FastDNA Spin Kit (MP Biomedicals, 116560200) and SPINeasy DNA Purification Kit (MP Biomedicals, 6548050). DNA concentration and integrity were verified with a NanoDrop 2000 and 1.5% agarose gel electrophoresis.
For 16S rRNA gene sequencing, the V3-V4 hypervariable regions of the bacterial 16S rRNA gene were amplified with primers 338F and 806R, and libraries were sequenced on an Illumina MiSeq platform (Majorbio, Shanghai, China). (42) Raw reads were processed in QIIME2 using the DADA2 pipeline to generate amplicon sequence variants (ASVs). Taxonomic assignment was performed against the SILVA 138 database.
For metagenomic sequencing, libraries were prepared from biofilm DNA and sequenced on an Illumina NovaSeq 6000 platform, yielding at least 6 Gb per sample. After quality control with Fastp, high-quality reads were de novo assembled using MEGAHIT. The assemblies had N50 values of 1.5 to 8.0 kb and were sufficient for gene-level annotation. Gene prediction was carried out with Prodigal, and non-redundant gene catalogs were constructed with CD-HIT. Taxonomic and functional annotations were obtained by aligning predicted genes against the NCBI non-redundant protein (NR) database (using DIAMOND), the KEGG database, and the Virulence Factor Database (VFDB), with particular emphasis on T6SS gene clusters and biofilm-associated pathways. T6SS genes were identified from VFDB annotation (e-value ≤ 1 × 10–5, identity ≥ 50%), with equal amounts of DNA used for library preparation. Gene abundance and community composition were compared using TPM, which is internally normalized and thus not confounded by differences in biofilm biomass across pipe materials.
2.10. Water Ion Composition Analysis
Concentrations of major ions (Na+, K+, Ca2+, Mg2+, Fe3+, Zn2+, Al3+, Cu2+, As3+) in different water types were determined using inductively coupled plasma mass spectrometry (ICP-MS; NexION 5000G, PerkinElmer) following standard protocols. The measured concentrations are provided in Table S4.
2.11. Statistical Analysis
Statistical analyses were performed using IBM SPSS (v29.0.0). Graphs were generated with GraphPad Prism (v8.0.2). Two-group comparisons used unpaired Student’s t-tests; multi-group comparisons used one-way ANOVA with appropriate post-hoc tests. Data are presented as mean ± standard deviation (SD). Significance levels: P < 0.05 (), P < 0.01 (), P < 0.001 ().
3. Results and Discussion
3.1. Pipe-Wall Biofilms Serve as Enrichment Sites for T6SS-Harboring Opportunistic Pathogens in DWDS
Metagenomic analysis of field-collected pipe-wall biofilms confirmed these structures as significant reservoirs for bacteria encoding the type VI secretion system (T6SS). The DNA-level data reflect the genetic potential of the biofilm community. Compared to bulk water, biofilms exhibited marked enrichment of key T6SS gene clusters, including Salmonella enteritidis SPI-6, Pseudomonas aeruginosa HSI-I/II/III, and the Aeromonas hydrophila T6SS cluster (Figure 1A). Correspondingly, known T6SS-harboring pathogens such as S. enteritidis, P. aeruginosa, and Burkholderia pseudomallei displayed higher relative abundance in biofilm samples (Figure 1B), highlighting the biofilm matrix as a niche that facilitates T6SS-mediated competition and persistence.

Not all T6SS hosts, however, were consistently enriched. The absence of phase-specific enrichment for Acinetobacter baumannii T6SS-I suggests its activity is not uniquely tied to biofilm formation. Its expression is likely governed by general environmental cues present in both planktonic and biofilm states, consistent with studies indicating that its competitive role operates independently of biofilm lifestyle, thereby reducing biofilm-specific selective pressure. (43) These community-level data reveal the distribution pattern of T6SS-harboring taxa between pipe-wall biofilms and bulk water in DWDS. Collectively, these findings establish pipe-wall biofilms as ecological hotspots where T6SS-driven competition shapes the community structure of opportunistic pathogens within drinking water systems.
3.2. Ionic Conditions Modulate T6SS-Mediated Salmonella Colonization in DWDS Biofilms
To understand how water chemistry influences T6SS activity and pathogen dynamics following field observations (Figure 1), we examined the effect of ionic shifts caused by increasing RO membrane treatment and source switching. Using a continuous-flow pipe system that simulates distal plumbing, we established biofilms in tap water before switching the water source (tap vs. RO) to mimic operational blending. Relative to tap water, NF removed approximately 73.2% of Ca2+, 89.4% of Mg2+, and 26.8% of TOC, whereas RO removed approximately 97.5% of Ca2+, 98.3% of Mg2+, and 78.3% of TOC (Table S4).
Using S. Tm as a model pathogen, biofilms established successfully (∼108 cells/m2) during the pre-colonization phase, with S. Tm accumulating without significant shedding (Figure 2B-D). After the switch to chlorinated maturation, total biofilm cells (native microbiota plus inoculated S. Tm) increased during days 0–20 and then stabilized, while S. Tm abundance rose, leading to increased pathogen shedding into the effluent (Figure 2E-G). Ion-rich tap water significantly enhanced S. Tm colonization and subsequent release compared to ion-depleted RO water (Figure 2F,G), directly linking ionic composition to pathogen fitness in DWDS biofilms. This difference likely reflects enhanced biofilm synthesis and matrix stability in ion-rich water, which provides more attachment sites and protects embedded cells from chlorine; RO water additionally removes TOC and limits overall biofilm development.

To test whether this competitive advantage requires a functional T6SS, we compared wild-type S. Tm with its T6SS-deficient mutant. The wild-type to mutant ratio reflects colonization fitness within the multi-species biofilm community, rather than direct killing of the mutant. Tracking this ratio revealed a dynamic competitive pattern, with consistently higher ratios in tap water than in RO water throughout maturation (Figure 2H), indicating that divalent cations enhance the colonization fitness advantage conferred by T6SS. The T6SS-dependent advantage peaked early (by day 20), transiently declined during mid-stage maturation (days 20–60), and then gradually recovered over extended succession (days 60-120) (Figure 2H). This non-monotonic trajectory indicates that the colonization fitness advantage conferred by T6SS is temporally modulated by biofilm maturation and matrix accumulation, (44) which we attribute to the balance between T6SS-mediated competition and matrix-mediated protection as the community matures. (45) These findings underscore that ionic conditions shape not only initial pathogen colonization but also the long-term ecological outcome of T6SS-driven interactions within plumbing biofilms.
3.3. Chlorine and Divalent Cations Synergistically Enhance T6SS Activity in Salmonella Biofilms
Having established that ionic conditions shape T6SS-mediated colonization (Figure 2), we next dissected the underlying mechanisms. Although oxidative stress can activate T6SS, (46) how water divalent cations synergize with chlorine in DWDS biofilms remains uncharacterized.
We confirmed that sodium hypochlorite activates S. Tm SPI-6 T6SS, elevating gene expression (Figure 3I) and enhancing killing of E. coli (Figure 3A,B). Critically, this chlorine-induced activation was markedly potentiated by water divalent cations, tap water further promoted T6SS-mediated killing of E. coli during biofilm competition (Figure 3F) and S. Tm proliferation compared to RO water (Figure 3C). Neither chlorine nor ion supplementation alone achieved maximal T6SS activation; only their combination produced the full response (Figure 3A,B,F). Ca2+ primarily promoted biofilm-state transition and matrix production (Figures 3A, S6) by cross-linking acidic extracellular polysaccharides and DNA, thereby stabilizing the matrix, increasing cell density, and promoting cell–cell contact required for contact-dependent T6SS killing. (26) These structural effects shape the physical context for T6SS-mediated attack and defense. Thus, Ca2+ and Mg2+ act through complementary routes to potentiate the overall competitive outcome.

Biofilm chlorine tolerance was modulated by water chemistry. While high chlorine reduced viable cells, a resilient population persisted at 1.0 mg/L chlorine (Figure 3F). Tap water biofilms tolerated chlorine better than RO water biofilms at all chlorine concentrations above 0 mg/L (Figure 3F). Total intact biofilm cells, representing the whole biofilm community, declined with increasing chlorine but were better retained in tap water than in RO water (Figure 3D), indicating that divalent cations enhance overall biofilm chlorine tolerance. T6SS competitiveness was consistently higher in tap water than in RO water across all chlorine concentrations, and the difference expanded by 30% to 40% at 0.6 mg/L relative to 0.2 mg/L. Correspondingly, viable S. Tm counts were 4.6-fold higher in tap water (Figure 3C), consistent with Mg2+-mediated activation of RpoS and CsgD pathways (Figure 3I). The difference between tap water and RO water widened at 0.8 to 1.0 mg/L chlorine, indicating that the ionic environment amplifies the chlorine-driven difference in S. Tm biofilm survival (Figure 3C). Low chlorine (<0.6 mg/L) promoted S. Tm retention (Figure 1), suggesting distal pipes with low residuals act as pathogen reservoirs.
Disinfectant type further influenced these dynamics. (47) Biofilm cell viability (Figure 3E) was measured to assess disinfectant and ion effects. Monochloramine, a combined chlorine disinfectant, increased viable biofilm cells (Figure S4A,B) yet reduced S. Tm colonization and attenuated T6SS competition (Figure S4C,D), revealing disinfectant-specific effects on pathogen fitness. In contrast, free chlorine from sodium hypochlorite enhanced T6SS competition, as described above. Mechanistically, c-di-GMP served as a key regulatory node. Mg2+ increased intracellular c-di-GMP, an effect amplified by chlorine (Figure 3H). The difference in c-di-GMP levels between the Mg2+-supplemented group and the control group widened from 28.57% to 51.46% as chlorine concentration increased, demonstrating that chlorine and Mg2+ act together to enhance c-di-GMP signaling. Mg2+ upregulated c-di-GMP synthase genes (yedQ, adrA), biofilm regulator csgD, and T6SS-related genes, while chlorine induced rpoS. To establish causality, we overexpressed adrA and yedQ, which significantly enhanced T6SS-dependent competitiveness, whereas yeaJ also enhanced competitiveness but to a lesser extent, despite comparable c-di-GMP elevation (Figure S5), indicating that spatially compartmentalized c-di-GMP pools are differentially coupled to T6SS regulation, a mechanism detailed in our previous work on the MgtC, c-di-GMP, and T6SS signaling chain. (26) Mg2+ supplementation attenuated rpoS expression (Figure 3I), suggesting that ionic enrichment mitigates oxidative stress via enhanced biofilm integrity. Compared with Mg2+ alone, the combined chlorine and Mg2+ treatment further upregulated genes involved in biofilm formation, Mg2+ sensing, c-di-GMP synthesis, and oxidative stress. These findings reveal an ion-chlorine synergy that potentiates pathogen fitness, with important implications for biofilm risk management in DWDS.
3.4. EPS Induction by Tap Water Divalent Cations Constrains T6SS-Mediated Killing in Maturing Biofilms
The decline in the T6SS-dependent advantage of S. Tm after approximately 20 days of maturation and its subsequent recovery after approximately 60 days (Figure 2H) prompted us to examine the role of extracellular polymeric substances (EPS) in modulating this dynamic. In RO water, chlorine increased total EPS but per-cell polysaccharide synthesis remained low, because divalent cations were largely removed. In tap water, chlorine increased total EPS and, after day 20, per-cell polysaccharide synthesis rose 2-4 fold, further amplified by Ca2+ and Mg2+ (Figure 4A,B). This increase coincided with the transient decline in the WT/mutant ratio (Figure 2H), supporting the interpretation that matrix shielding limiting T6SS-mediated contact competition. In RO water, the ratio remained low throughout maturation because ion depletion weakened T6SS activity, so the transient decline was less pronounced. After approximately 60 days, polysaccharide synthesis stabilized as the biofilm matured, so matrix shielding reached a plateau; this coincided with the recovery of T6SS advantage, as T6SS-proficient cells continued to eliminate deficient cells over successive generations.

Using an S. Tm-E. coli dual-species model, we confirmed that both chlorine and tap water divalent cations promote EPS accumulation (Figure S6). Focusing on colanic acid, a matrix polysaccharide known to shield cells from T6SS effectors, (44) we found its levels increased over time and correlated with reduced growth inhibition of E. coli (Figure 4C). Notably, divalent cations and chlorine together stimulated additional colanic acid synthesis under competitive co-culture (Figure 4D), whereas either factor alone produced a much weaker response, suggesting interspecies competition triggers a stress-induced EPS response. (48) This EPS response was, in turn, dependent on T6SS activity: active T6SS competition further enhanced the colanic acid production induced by divalent cations and chlorine (Figure 4E).
Mechanistically, ion-supplemented conditions upregulated rcsA and rcsB (Figure 4F), key positive regulators of colanic acid synthesis. This upregulation required both chlorine and divalent cations, as neither factor alone reproduced the combined effect. Overexpression of RcsA in E. coli increased colanic acid in both mono- and dual-species biofilms (Figure 4G,H) and reduced susceptibility to T6SS-mediated killing (Figure 4I), confirming a functional defense pathway activated by competitive attack. Collectively, these findings reveal a developmental-stage-dependent trade-off: during early biofilm establishment, T6SS-mediated competition drives expansion; as the community matures and approaches biomass saturation, however, EPS production is upregulated, particularly in the presence of tap water divalent cations, to constrain antagonism and stabilize the structured habitat. Once per-cell EPS synthesis plateaus, matrix shielding remains constant, and T6SS-proficient cells continue to eliminate deficient cells across generations, driving the gradual recovery of T6SS advantage.
This protective role of EPS was further validated in PPR coupon biofilms. Colanic acid levels increased significantly from the mid-phase onward and remained elevated beyond 90 days, with tap water further boosting production (Figure 4J). To directly test whether the polysaccharide matrix limits T6SS activity, we periodically removed matrix polysaccharides using mild glucanase treatment, which degraded approximately 30-40% of glucan while reducing cell adhesion by only 10-15% (Figure S7). Following this partial digestion, stronger T6SS competitive outcomes were restored over time (Figure 4K), demonstrating that the polysaccharide-rich matrix formed in mature biofilms functions as a physical barrier constraining T6SS-driven expansion. Together, these results establish that tap water divalent cations promote EPS synthesis, creating a protective matrix that attenuates T6SS-mediated competition, a feedback loop shaping pathogen interactions within maturing DWDS biofilms.
3.5. Water Ionic Composition Drives T6SS-Mediated Ecological Succession and Pathogen Selection in Pipe Biofilms
To determine whether the mechanisms identified in simplified models scale to community-level dynamics, we performed metagenomic sequencing across four maturation time points in simulated distal pipe systems. Ionic enrichment fundamentally altered community assembly: opportunistic pathogens including Pseudomonas, Salmonella, and Pseudoxanthomonas became increasingly dominant over time in tap water biofilms (Figures S8, 5A), indicating that ionic conditions confer a selective advantage to T6SS-harboring taxa.

Functional profiling revealed that tap water enriched pathways related to ABC transporters, quorum sensing, and phosphotransferase systems (Figure 5B), collectively promoting glycolytic flux and biofilm polysaccharide synthesis, consistent with the increased EPS production observed in our mechanistic studies (25, 49) (Figure 5C). Module-based analysis further showed that tap water divalent cations enhanced c-di-GMP synthesis, Wzy-type polysaccharide assembly, and EPS regulatory pathways over time, (50) mirroring the c-di-GMP-mediated signaling identified in our mechanistic studies.
Virulence annotation uncovered selective ionic association with T6SS genetic potential at community level. While low-ion RO water enriched motility genes, tap water significantly enriched multiple T6SS pathways, including HSI-I, SPI-6, and Pseudomonas putida effectors (Figure 5E), corresponding with increased Salmonella and Pseudomonas abundance. Concurrent upregulation of RcsAB-regulated polysaccharide synthesis, catalase (katG), and RpoS (Figure S9) suggested ionic conditions promote oxidative stress adaptation, further validating the mechanistic links established in our reductionist models.
These community-level shifts culminated in a distinct “biofilm reservoir effect.” Under tap water conditions, effluent diversity declined more sharply alongside elevated Salmonella shedding (Figure 5F). Critically, the shed population was enriched in T6SS-deficient mutants (wild-type/mutant ratio < 1; Figure 5G), revealing that biofilms selectively retain T6SS-competent cells while releasing less competitive variants, explaining how T6SS-active strains accumulate on pipe surfaces over time. (51) However, in distal piping where chlorine decays, diminished selective pressure may allow even T6SS-active strains to detach upon hydraulic disturbance (Figure 5G), elevating exposure risk at point of use. Collectively, these dynamics link water ionic composition to pathogen selection in ways that parallel our mechanistic findings, reframing T6SS from a molecular driver of interference competition into a key ecological modulator of pathogen persistence and dispersal in engineered water systems.
3.6. Ion-Dependent T6SS Regulation across Representative DWDS Opportunistic Pathogens
To determine whether T6SS-mediated colonization is broadly regulated by water chemistry beyond Salmonella, we further investigated representative opportunistic pathogens. Notably, our previous metagenomes (Figure 5A,E) already revealed a synchronous enrichment of P. aeruginosa and its HSI-I T6SS gene cluster under tap water (TW) conditions. To advance this toward realistic municipal treatment practices, we established pipe systems under TW or nanofiltration (NF) water conditions without exogenous pathogen addition, allowing biofilms to develop naturally and thereby more closely mimic real-world distribution scenarios. Over 90 days, NF water reduced pathogen abundance (Figure 6A) while suppressing virulence-associated pathways and lowering overall T6SS genemic potential (Figure 6B,C). Although alpha diversity did not differ significantly between NW and TW, the abundances of major T6SS-harboring taxa and their associated gene clusters increased over time (Figure S10). The abundance of T6SS-harboring genera correlated positively with Ca2+ and Mg2+ levels (Figure 6D). Consistently, P. aeruginosa T6SS-mediated killing was inhibited in low-ion water (both RW and NW) and restored by ion supplementation (Figure 6E,F).

Disrupting the surface regulator retS in P. aeruginosa mimicked high-ion stimulation, causing constitutive T6SS activation, elevated c-di-GMP, and enhanced polysaccharide-rich EPS production (Figures 6G, S11). In flowing pipe systems, the colonization advantage of the ΔretS mutant depended on TW ions and a functional T6SS, as shown by its loss in a ΔretS Δhcp1 double mutant (Figure 6H). These results demonstrate that ionic composition, particularly divalent cation availability, is associated with T6SS-mediated competition in representative opportunistic pathogens.
Correlation analysis (Figure 6D) associated ion concentrations with the abundance of Pseudomonas and a few closely related taxa, a hypothesis-generating pattern validated experimentally for P. aeruginosa (Figure 6E-H). We selected Salmonella and Pseudomonas for mechanistic validation because of the high biofilm abundance and public health relevance as enteric and pulmonary pathogens, whereas Burkholderia and Aeromonas were not validated due to their lower biofilm abundance and greater genetic manipulation complexity; thus, our validation focused on Pseudomonas and Salmonella as representative threats to water quality and point-of-use exposure. From a practical standpoint, controlled ion reduction through membrane processes like nanofiltration offers a chemistry-based strategy to mitigate pathogen colonization, highlighting water chemical stability as a critical lever for microbial risk management in DWDS.
4. Environmental Implications
This study provides evidence that drinking water ionic composition, in synergy with chlorine, critically regulates microbial competition within distribution system biofilms. These results support a “biofilm reservoir effect,” wherein T6SS-proficient pathogens are selectively enriched under higher chlorine and subsequently released as disinfectant decays, posing exposure risks at point of use. Our simulated system used a fixed low flow rate to represent intermittent water use and extended stagnation in distal pipes, while real distal pipes also experience variable shear. Low-shear or stagnant zones may promote thicker EPS matrices and stronger shielding, whereas high-shear events may erode the matrix and detach T6SS-active cells. The reservoir effect may therefore be spatially heterogeneous and episodic rather than uniform.
These findings suggest a mechanistic foundation for microbial risk management strategies in drinking water that diverge from or complement conventional approaches. Traditional microbial risk control in drinking water distribution system focuses on reducing organic carbon in treated water to limit bacterial growth on pipe surface. Our work suggests an additional lever: ionic composition governs not biomass abundance alone, but the competitive architecture in biofilms, thereby affecting which pathogens persist and their capacity to evade disinfection. In our experiments, removing divalent cations via nanofiltration suppressed T6SS-driven colonization, weakening pathogen reservoir accumulation and release. Because NF/RO is typically followed by remineralization, we do not propose complete removal of Mg2+ and Ca2+; instead, adjusting the Mg2+/Ca2+ ratio during remineralization could suppress T6SS-driven virulence while maintaining matrix stability, complementing rather than replacing disinfection and organic carbon control. NF and RO removed 26.8% and 78.3% of TOC, further limiting microbial growth and potentially amplifying the observed phenotype. This approach enhances disinfection efficacy while potentially reducing microbial induced corrosion and DBPs.
By positioning water chemistry as a potential determinant of microbial ecology, this work connects biofilm science with treatment design. Integrating ionic stability into distribution system management, alongside organic carbon control, could advance a more sustainable paradigm for drinking water safety. While further validation in full-scale networks remains essential, this research provides a forward-looking framework for mitigating pathogen risks amid evolving treatment technologies and public health expectations.
Author Contributions
Conceptualization, T.L. and X.B.; Methodology, T.L.; Investigation, T.L. and X.B.; Writing─Original Draft, T.L.; Writing─Review and Editing, T.L. and X.B.; Funding Acquisition, X.B.; Resources, X.B.; Supervision, X.B. All authors read, critically revised, and approved the final manuscript.
References
-
Liu. Material-driven microbiologically influenced corrosion mechanisms in drinking water distribution systems. Water Res. 288, 124729 (2026). Source
-
Liu. Understanding, Monitoring, and Controlling Biofilm Growth in Drinking Water Distribution Systems. Environ. Sci. Technol. 50(17), 8954 (2016). Source
-
Servais. Biofilm in the Parisian suburbs drinking water distribution system. J. Water SRT-Aqua 53(5), 313 (2004). Source
-
Khu. Effects of hydraulic conditions on biofilm detached in drinking water distribution system. J. Water Process. Eng. 53, 103882 (2023). Source
-
Zhang. Impacts of water treatments on bacterial communities of biofilm and loose deposits in drinking water distribution systems. Environ. Int. 190, 108893 (2024). Source
-
Zhu. Effects of interspecific interactions on biofilm formation potential and chlorine resistance: Evaluation of dual-species biofilm observed in drinking water distribution systems. J. Water Process. Eng. 38, 101564 (2020). Source
-
Zhang. Pilot investigation on formation of 2,4,6-trichloroanisole via microbial O-methylation of 2,4,6-trichlorophenol in drinking water distribution system: An insight into microbial mechanism. Water Res. 131, 11 (2018). Source
-
Wang. Biofilm formation and inhibition mediated by bacterial quorum sensing. Appl. Microbiol. Biotechnol. 106(19–20), 6365 (2022). Source
-
Liu. AHL-mediated quorum sensing drives microbial community succession and metabolic pathway in algal-bacterial biofilm system. Water Res. 282, 123702 (2025). Source
-
Vandana. Genetic regulation, biosynthesis and applications of extracellular polysaccharides of the biofilm matrix of bacteria. Carbohydr. Polym. 291, 119536 (2022). Source
-
Lee. The hierarchy quorum sensing network in Pseudomonas aeruginosa. Protein Cell 6(1), 26 (2015). Source
-
Sadiq. Community-wide changes reflecting bacterial interspecific interactions in multispecies biofilms. Crit. Rev. Microbiol. 47(3), 338 (2021). Source
-
Xu. Sodium hypochlorite residual in the environment facilitated the spread of antibiotic resistance genes: through microplastics as a medium. Environ. Int. 208, 110048 (2026). Source
-
Nadell. Spatial structure, cooperation and competition in biofilms. Nat. Rev. Microbiol. 14(9), 589 (2016). Source
-
Zhang. SecReT6 update: a comprehensive resource of bacterial Type VI Secretion Systems. Sci. China Life Sci. 66(3), 626 (2023). Source
-
Lin. A Pseudomonas T6SS effector recruits PQS-containing outer membrane vesicles for iron acquisition. Nat. Commun. 8(1), 14888 (2017). Source
-
DeShazer. A novel contact-independent T6SS that maintains redox homeostasis via Zn2+ and Mn2+ acquisition is conserved in the Burkholderia pseudomallei complex. Microbiol. Res. 226, 48 (2019). Source
-
Sana. SalmonellaTyphimurium utilizes a T6SS-mediated antibacterial weapon to establish in the host gut. Proc. Natl. Acad. Sci. U. S. A. 113(34) (2016). Source
-
Stolle. Endogenous membrane stress induces T6SS activity in Pseudomonas aeruginosa. Proc. Natl. Acad. Sci. U. S. A. 118(1) (2021). Source
-
Lin. Pseudomonas aeruginosa H3-T6SS Combats H2O2 Stress by Diminishing the Amount of Intracellular Unincorporated Iron in a Dps-Dependent Manner and Inhibiting the Synthesis of PQS. Int. J. Mol. Sci. 24(2), 1614 (2023). Source
-
Pontes. Salmonella promotes virulence by repressing cellulose production. Proc. Natl. Acad. Sci. U. S. A. 112(16), 5183 (2015). Source
-
Tang. Abiotic factors modulate interspecies competition mediated by the type VI secretion system effectors in Vibrio cholerae. Isme J. 16(7), 1765 (2022). Source
-
Li. c-di-GMP inhibits the DNA binding activity of H-NS in Salmonella. Nat. Commun. 14(1), 7502 (2023). Source
-
Valentini. Biofilms and Cyclic di-GMP (c-di-GMP) Signaling: Lessons from Pseudomonas aeruginosa and Other Bacteria. J. Biol. Chem. 291(24), 12547 (2016). Source
-
Jenal. Cyclic di-GMP: second messenger extraordinaire. Nat. Rev. Microbiol. 15(5), 271 (2017). Source
-
Liu. Mg2+ in drinking water boosts Salmonella infection risk by rewiring gut ecology and virulence. Nat. Water 4(3), 307 (2026). Source
-
Liu. Bacterial community radial-spatial distribution in biofilms along pipe wall in chlorinated drinking water distribution system of East China. Appl. Microbiol. Biotechnol. 101(2), 749 (2017). Source
-
Guo. High-Efficiency Capture and Recovery of Anionic Perfluoroalkyl Substances from Water Using PVA/PDDA Nanofibrous Membranes with Near-Zero Energy Consumption. Environ. Sci. Technol. Lett. 8(4), 350 (2021). Source
-
Epsztein. Selective nitrate removal from groundwater using a hybrid nanofiltration-reverse osmosis filtration scheme. Chem. Eng. J. 279, 372 (2015). Source
-
Pluym. Membrane filtration reduces nutrient availability and invasion potential in drinking water systems, without affecting mature biofilms. Front. Microbiol. 16, 1622038 (2025). Source
-
Zhang. Pilot investigation on biostability of drinking water distribution systems under water source switching. Appl. Microbiol. Biotechnol. 106(13–16), 5273 (2022). Source
-
Miao. The role of pipe biofilms on dissemination of viral pathogens and virulence factor genes in a full-scale drinking water supply system. J. Hazard. Mater. 432, 128694 (2022). Source
-
Hmelo. Precision-engineering the Pseudomonas aeruginosa genome with two-step allelic exchange. Nat. Protoc. 10(11), 1820 (2015). Source
-
Schafer. SSmall mobilizable multi-purpose cloning vectors derived from the Escherichia coli plasmids pK18 and pK19: selection of defined deletions in the chromosome of Corynebacterium glutamicum. Gene 145(1), 69 (1994). Source
-
Datsenko. One-step inactivation of chromosomal genes in Escherichia coli K-12 using PCR products. Proc. Natl. Acad. Sci. U. S. A. 97(12), 6640 (2000). Source
-
Hu. Self-repair and resuscitation of viable injured bacteria in chlorinated drinking water: Achromobacter as an example. Water Res. 245, 120585 (2023). Source
-
Lories. Biofilm Bacteria Use Stress Responses to Detect and Respond to Competitors. Curr. Biol. 30(7), 1231 (2020). Source
-
DuBois. Colorimetric Method for Determination of Sugars and Related Substances. Anal. Chem. 28(3), 350 (1956). Source
-
Bradford. A rapid and sensitive method for the quantitation of microgram quantities of protein utilizing the principle of protein-dye binding. Anal. Biochem. 72, 248 (1976). Source
-
Okshevsky. The role of extracellular DNA in the establishment, maintenance and perpetuation of bacterial biofilms. Crit. Rev. Microbiol. 41(3), 341 (2015). Source
-
Zhan. Metabolic Engineering for Overproduction of Colanic Acid in Escherichia coli Mutant with Short Lipopolysaccharide. J. Agric. Food Chem. 70(27), 8351 (2022). Source
-
Ren. Majorbio Cloud: A one-stop, comprehensive bioinformatic platform for multiomics analyses. iMeta 1(2) (2022). Source
-
Repizo. Differential Role of the T6SS in Acinetobacter baumannii Virulence. PLoS One 10(9) (2015). Source
-
Granato. Collective protection against the type VI secretion system in bacteria. Isme J. 17(7), 1052 (2023). Source
-
Toska. Exopolysaccharide protects Vibrio cholerae from exogenous attacks by the type 6 secretion system. Proc. Natl. Acad. Sci. U. S. A. 115(31), 7997 (2018). Source
-
Dong. Generation of reactive oxygen species by lethal attacks from competing microbes. Proc. Natl. Acad. Sci. U. S. A. 112(7), 2181 (2015). Source
-
Luh. Inactivation of Mycobacterium avium with monochloramine. Environ. Sci. Technol. 42(21), 8051 (2008). Source
-
Røder. Interspecies interactions result in enhanced biofilm formation by co-cultures of bacteria isolated from a food processing environment. Food Microbiol. 51, 18 (2015). Source
-
Papenfort. Quorum sensing signal–response systems in Gram-negative bacteria. Nat. Rev. Microbiol. 14(9), 576 (2016). Source
-
Schwabe. Evidence for a Widespread Third System for Bacterial Polysaccharide Export across the Outer Membrane Comprising a Composite OPX/β-Barrel Translocon. mBio 13(5) (2022). Source
-
Boles. Self-generated diversity produces “insurance effects” in biofilm communities. Proc. Natl. Acad. Sci. U. S. A. 101(47), 16630 (2004). Source