Defect engineering is an important way to tune the catalytic properties of metal-organic framework (MOF), yet precise control of defects is difficult to achieve. Herein, a cerium-based MOF (CeTCPP) is decorated with Au nanoparticles. Under ultrasound irradiation, Au nanoparticles can precisely turn 1/3 of the pristine Ce3+ nodes into Ce4+ . With the stable existence of Ce4+ , the coordination of Ce nodes changed, causing the structural irregularity in CeTCPP-Au, so that the electron-hole recombination is obviously hindered, facilitating the generation of reactive oxygen species. Therefore, under 20min of ultrasound irradiation, the CeTCPP-Au showed superior antibacterial efficacy of over 99% against Staphylococcus aureus and Escherichia coli with good biocompatibility, which is further used for effective therapy of osteomyelitis. Overall, this work provides a dynamic defect formation strategy of MOF through the electron trapping of Au nanoparticles, which also sheds light on sonodynamic therapy in curing deep-seated lesions.