Cyprinid herpesvirus 2 (CyHV‐2) infection is detrimental to gibel carp health and may result in severe economic loss in freshwater aquaculture. However, information regarding the interaction of this pathogen with the aquatic environment is scarce. In this study, quantitative polymerase chain reaction (qPCR) and high‐throughput sequencing were used to determine the abundances of pathogens and bacterial community compositions in two aquaculture ponds in Jiangsu Province, China. The results indicate that the concentrations of six selected pathogens were higher in the water than in the sediment and that these concentrations peaked during disease outbreak. In total, 8,326 and 18,244 operational taxonomic units were identified from water and sediment samples, respectively. The dominant phyla were Proteobacteria, Actinobacteria, Cyanobacteria, Bacteroidetes, and Chlorobi in water samples and Proteobacteria, Firmicutes, Actinobacteria, Chloroflexi, and Bacteroidetes in sediment samples. Bacterial communities were similar at the phylum level in different ponds, although significant differences were observed at the genus level. In addition, bacterial diversity was associated with environmental factors (temperature, chemical oxygen demand, NO2
−‐N, NO3
−‐N, and NH4
+‐N) in the pond where the outbreak occurred. Additionally, CyHV‐2 abundance was positively correlated with dissolved oxygen levels and Aeromonas spp. abundance in pond water (p < .01). This study provides comprehensive insight into the mechanisms of interaction between potential pathogens and the freshwater environment of aquaculture ponds during CyHV‐2 disease outbreaks. Furthermore, the results from this study can contribute to improvement of the aquatic environment and establishment of disease prevention and control measures.