In this study, ICA@Mg-ZIF-8 was synthesized by Mg doping in ZIF-8 and loaded with icariin (ICA). The morphologies and phases were observed and analyzed by SEM, XRD, and the release behaviors of Mg, Zn ions and ICA were tested. Its antibacterial and mineralization performances were evaluated. The results showed that ICA@Mg-ZIF-8 has the same morphology and crystal structure as ZIF-8. ICA@Mg-ZIF-8 showed enhanced antibacterial activity against Escherichia coli and Staphylococcus aureus, and the antibacterial rate was increased to 87.7 % and 64.0 %, respectively. The results of in vitro mineralization showed that ICA@Mg-ZIF-8 presented better osteogenic performance promoting the uniform deposition of more calcium and phosphorus in simulated body fluids compared to ZIF-8.