The proliferation of pathogenic bacteria and antibiotic resistance genes (ARGs) in the biofilm of drinking water distribution pipes poses a serious threat to human health. This work adopted 15 polyethylene (PE) pipes to study the co-selective effect of dissolved organic matter (DOM) and chlorine on the bacterial community and their antibiotic resistance in biofilm. The results indicated that ozone and granular activated carbon (O3-GAC) filtration effectively removed lignins and proteins from DOM, and chlorine disinfection eliminated carbohydrate and unsaturated hydrocarbons, which both contributed to the inhibition of bacterial growth and biofilm formation. After O3-GAC and disinfection treatment, Porphyrobacter, unclassified_d_bacteria, and Sphingopyxis dominated in the biofilm bacterial community. Correspondingly, the bacterial metabolism pathways, including the phosphotransferase system, phenylalanine, tyrosine and tryptophan biosynthesis, ABC transporters, and starch and sucrose metabolism, were downregulated significantly (p < 0.05), compared to the sand filtration treatment. Under such a situation, extracellular polymeric substances (EPS) secretion was inhibited in biofilm after O3-GAC and disinfection treatment, postponing the interaction between EPS protein and pipe surface, preventing bacteria, especially pathogens, from adhering to the pipe surface to form biofilm, and restraining the spread of ARGs. This study revealed the effects of various water filtration and disinfection processes on bacterial growth, metabolism, and biofilm formation on a molecular level, and validated that the O3-GAC filtration followed by chlorine disinfection is an effective and promising pathway to control the microbial risk of drinking water.