Regeneration the critical-sized bone defects remains a great challenge to clinical therapy due to the inflammatory microenvironment and lack of stem cells in the region of the bone defects. 3D bioprinted scaffolds based on bioactive ink and loaded active cells can promote the inflammatory microenvironment and cell viability, thereby enhancing bone regeneration. In this study, 10 % Gelatin-methacryloyl (GelMA)/5 %Sr substituted xonotlite (Sr-CSH) nanocomposite hydrogel was developed as a bioink to encapsulate bone marrow mesenchymal stem cells (BMSCs), and then constructed a biomimetic bone tissue by 3D bioprinting. The incorporation of Sr-CSH nanowires enhanced the printing accuracy and mechanical property of GelMA, and enhanced the osteogenic differentiation of BMSCs. In addition, Sr-CSH induced macrophage M2 polarization, which modulated the inflammatory microenvironment and further promoted osteogenic differentiation of BMSCs. In rat critical-sized calvarial defects model, 3D bioprinted scaffolds based on GelMA-Sr-CSH bioinks laden with BMSCs achieve complete bone repair. In summary, this study developed an osteoimmunomodulatory bioink, and 3D bioprinted scaffolds laden with stem cells may be an effective method for achieving complete regeneration of critical-sized bone defects.