Ankylosing spondylitis (AS) is a common rheumatic disorder distinguished by chronic inflammation and heterotopic ossification at local entheses sites. Currently available medications, including nonsteroidal anti-inflammatory drugs (NSAIDs), disease-modifying anti-rheumatic drugs (DMARDs) and TNF inhibitors, are limited by side effects, high costs and unclear inhibitory effects on heterotopic ossification. Herein, we developed manganese ferrite nanoparticles modified by the aptamer CH6 (CH6-MF NPs) that can efficiently scavenge ROS and actively deliver siRNA into hMSCs and osteoblasts in vivo for effective AS treatment. CH6-MF NPs loaded with BMP2 siRNA (CH6-MF-Si NPs) effectively suppressed abnormal osteogenic differentiation under inflammatory conditions in vitro. During their circulation and passive accumulation in inflamed joints in theZap70mutmouse model, CH6-MF-Si NPs attenuated local inflammation and rescued heterotopic ossification in the entheses. Thus, CH6-MF NPs may be an effective inflammation reliever and osteoblast-specific delivery system, and CH6-MF-Si NPs have potential for the dual treatment of chronic inflammation and heterotopic ossification in AS.Supplementary InformationThe online version contains supplementary material available at 10.1186/s12951-023-01906-2.