Poor osseointegration and infection are the main reasons leading to the failure of hard tissue implants; especially, in recent years, the failure rate has been increasing every year owing to the continuously increasing conditions such as injury, trauma, diseases, or infections. Therefore, the development of a biomimetic surface coating of bone tissues with antibacterial function is an effective means to improve bone healing and inhibit bacterial infection. Mimicking the natural bone, in this study, we have designed a silk fibroin (collagen-like structure)-based coating inlaid with nanohydroxyapatite (nHA) and silver nanoparticles (AgNPs) for promoting antibacterial ability and osteogenesis, especially focusing on the bone mimetic structure for enhancing bone health. Observing the morphology and size of the composite nanoparticles by transmission electron microscope (TEM), nHA provided nucleation sites for the formation of AgNPs, forming an nHA/AgNP complex with a size of about 100−200 nm. Characterization of the nHA/Ag-loaded silk fibroin biomimetic coating showed an increased surface roughness with good density and compact performances. The silk fibroin-based coating loaded with uniformly distributed AgNPs and nHA could effectively inhibit the adhesion of Staphylococcus aureus on the surface and, at the same time, quickly kill planktonic bacteria, indicating their good antibacterial ability. In vitro cell experiments revealed that the biomimetic silk fibroin-based coating was beneficial to the adhesion, spreading, and proliferation of osteoblasts (MC3T3-E1). In addition, by characterizing LDH and ROS, it was found that the nHA/ Ag complex could significantly reduce the cytotoxicity of AgNPs, and the osteoblasts on the coating surface maintained the structure intact.