CD4+ TRM17 cells are the predominant source of IL-17A in SpA synovial tissue. TCR stimulation is essential for the secretion of IL-17A by CD4+TRM17-like cells. The epigenetic regulator bromodomain-containing protein 1 (BRD1) contributes to the generation of CD4+TRM17. Depleting CD4+TRM17 cells in SpA is thus a therapeutic strategy with potential to induce long-term remission.