Dual-specificity phosphatases 22-deficient T cells contribute to the pathogenesis of ankylosing spondylitis. Here, DUSP22 is linked to ankylosing spondylitis.