Tissue infection typically results from blood transmission or the direct inoculation of bacteria following trauma. The pathogen-induced destruction of tissue prevents antibiotics from penetrating the infected site, and severe inflammation further impairs the efficacy of conventional treatment. The current study describes the size-dependent induction of macrophage polarization using gold nanoparticles. Gold nanoparticles with a diameter of 50nm (Au50) can induce M2 polarization in macrophages by inhibiting the NF-κB signaling pathway and stimulate an inflammatory response in the environment by inhibiting the MAPK signaling pathway LPS. Furthermore, the induced polarization and anti-inflammatory effects of the Au50 nanoparticles promoted the osteogenic differentiation of BMSCs in vitro. In addition, the overexpression of TREM2 in macrophage induced by Au50 nanoparticles was found to promote macrophage phagocytosis of Staphylococcus aureus, enhance the fusion of autophagosomes and lysosomes, accelerate the intracellular degradation of S.aureus, in addition to achieving an effective local treatment of osteomyelitis and infectious skin defects in conjunction with inflammatory regulation and accelerating bone regeneration. The findings, therefore, demonstrate that Au50 nanoparticles can be utilized as a promising nanomaterial for in vivo treatment of infections.