• The Rod-shaped hydroxyapatite (rHAP) was successfully prepared with its length ranging from 300 nm to 400 nm using a hydrothermal method. • The rHAP promotes macrophage phenotype 2 (M2) polarization and osteogenesis in vitro and in vivo. • The 200 μg/mL rHAP induce M2 polarization via the PI3K-Akt and Wnt/β-catenin pathways. • The rHAP interacts with macrophages through adhesion to cell membranes and endocytosis of lysosomes. Bone defects are common clinical problems in the world, and there are many biomaterials used for treating them. However, there is still a paucity of bioactive materials capable of modulating the immune microenvironment. Therefore, it is necessary to identify new therapeutic strategies to regulate the immune microenvironment of the bone defect to further promote osteogenesis. Hydroxyapatite (HAP) is an important mineral for the framework of the human body. Recently, HAP has become a key research object for bone tissue engineering applications due to its unique tailored properties and similarity to bone tissue. Here, we prepared rod-shaped HAP (rHAP) with different concentrations (0, 100, 200, and 300 μg/mL). The slowly released Ca 2+ of 200 μg/mL rHAP can induce macrophage phenotype 2 (M2) polarization to decrease inflammatory cytokine secretion via the PI3K-Akt and Wnt/β-catenin pathways. In addition, rHAP can induce osteogenesis through the osteogenic differentiation of rat bone marrow mesenchymal stem cells. In conclusion, the 200 μg/mL rHAP shows the potential for osteoimmunomodulation in a bone defect in vitro and in vivo , which is beneficial to the treatment of bone defects.