Hydrolyzed polyacrylamide (HPAM) is posing serious threats to ecosystems. However, biodegradation is an effective method to remove HPAM owing to its low cost and environmental friendliness. In this study, Alcaligenes faecalis EPDB-5 was isolated as a highly efficient HPAM degrading strain from sludge contaminated with polymerized produced water from Daqing oilfield. Under the optimal conditions, the strain EPDB-5 demonstrated an impressive HPAM degradation rate of 86.05%, the total nitrogen (TN) removal of 71.96% and chemical oxygen demand (COD) removal of 67.98%. Meanwhile, it can maintain a stable degradation rate higher than 75% under different pH and temperature conditions. 27 genes that play a key role in HPAM degradation were annotated by metagenomics sequencing. The key genes were involved in multiple KEGG pathways, including biofilm formation, biosynthesis secondary metabolites, and metabolic pathways. SEM, GPC, and FTIR analyses revealed that the structure of HPAM after biodegradation showed pores, a significant decrease in molecular weight, -NH2 detachment, and carbon chain breakage. Particularly, we propose a possible mechanism of biofilm formation - HPAM degradation - biofilm disappearance and reorganization. Moreover, the degradation rate of strain EPDB-5 on real wastewater containing HPAM was 29.97% in only three days. This work expands our knowledge boundary about the HPAM degradation mechanism at the functional gene level, and supports the potential of strain EPDB-5 as a novel auxiliary microbial resource for the practical application of HPAM.