Bacterial infection is a serious challenge in the treatment of open bone defects, and reliance on antibiotic therapy may contribute to the emergence of drug-resistant bacteria. To solve this problem, this study developed a mineralized hydrogel (PVA-Ag-PHA) with excellent antibacterial properties and osteogenic capabilities. Silver nanoparticles (CNC/TA@AgNPs) were greenly synthesized using natural macromolecular cellulose nanocrystals (CNC) and plant polyphenolic tannins (TA) as stabilizers and reducing agents respectively, and then introduced into polyvinyl alcohol (PVA) and polydopamine-modified hydroxyapatite (PDA@HAP) hydrogel. The experimental results indicate that the PVA-Ag-PHA hydrogel, benefiting from the excellent antibacterial properties of CNC/TA@AgNPs, can not only eliminate Staphylococcus aureus and Escherichia coli, but also maintain a sustained sterile environment. At the same time, the HAP modified by PDA is uniformly dispersed within the hydrogel, thus releasing and maintaining stable concentrations of Ca