Abstract Background/Aims Ankylosing spondylitis (AS) is a debilitating condition characterised by severe spinal deformities, inflammation, and excessive bone formation, imposing significant socioeconomic burdens. Current treatments alleviate symptoms but fail to address bone structural damage. Pathological bone formation often occurs at entheses, where tendons and ligaments connect to bone. Osteogenic precursor cells (OPCs) play a crucial role, but their migration to new bone sites is poorly understood. C-X-C motif chemokine ligand 12 (CXCL12) is implicated in cell migration and bone-related processes, but its role in AS remains unclear. This study explores CXCL12/CXCR4 signalling in OPC recruitment and new bone formation, providing insights into AS pathogenesis and potential therapeutic targets. Methods We established mouse models, including the DBA/1 model, lipopolysaccharide-induced spondyloarthritis model, and Achilles tendon semi-transection model to confirm the role of CXCL12-Induced OPCs migration in pathological new bone formation. Additionally, genetically edited mouse models were generated to confirm the underlying mechanism of OPCs migration and their spatiotemporal phenotypes of differentiation, including DBA1;CXCL12 col2 transgenic mice, CXCL12hi/hi;Col2a1-creERT mice, and CXCR4fl/fl;Prx1-creERT mice. Results In this study, we have identified CXCL12 as a crucial contributor to the initiation of pathological new bone formation by recruiting OPCs. CXCL12 was highly expressed in regions predisposed to pathological bone development, attracting OPCs to these upregulated areas. Inhibiting the CXCL12/CXCR4 axis with AMD3100 or the conditional knockout of CXCR4 effectively reduced OPC migration and subsequent pathological bone formation in animal models of AS. Overexpression of CXCL12 in genetically engineered animals with a DBA/1 background demonstrated a stable joint ankylosis phenotype, providing a valuable model for the study of AS. Furthermore, our research revealed the indispensable role of Rac1 in OPC migration and the ensuing pathological bone formation. Conclusion This study elucidates the novel role of CXCL12 in AS and offers potential strategies for targeting the CXCL12/CXCR4-Rac1 axis to prevent the progression of axial skeletal ankylosis. Disclosure H. Cui: None. H. Liu: None.