Background: Studies into ankylosing spondylitis (AS) and its relationship with immune imbalance are controversial, and the correlation between the efficacy of TNF-α inhibitor and changes in immune imbalance is unclear. Methods: A total of 40 immune cells were tested with flow cytometry, and the results of 105 healthy control (HC) subjects, 177 active-stage AS patients, and 23 AS cases before and after 12 weeks of TNF-α inhibitor therapy (Anbainuo) were analyzed. Results: Compared with the HC group, the proportion of immune cells, such as naïve and central memory CD4+T cells, in AS increased (P < 0.0001), but effector memory and terminally differentiated CD4+T cells were decreased (P < 0.01 and 0.0001, respectively). Naïve, central memory, and effector memory CD8+T cells were increased (P < 0.0001, 0.001, and 0.01, respectively), but terminally differentiated CD8+T cells were decreased (P < 0.0001). Th1 cells (helper T cells-1), Tfh1 cells (follicular helper T cells-1), Tc1 cells (cytotoxic T cells-1), and Tregs (regulatory T cells) were lower (P < 0.01, 0.05, 0.0001, and 0.001, respectively), but Th17 cells, Tfh17 cells, and Tc cells were higher (P < 0.001, 0.0001, and 0.001, respectively). The proportions of total B cells and class-switched B cells were increased (P < 0.05), but non-switched B cells, plasma cells, memory B cells, and immature Bregs (regulatory B cells) were lower (P < 0.01, 0.0001, 0.0001, and 0.0001, respectively). After Anbainuo therapy, the percentage of naïve CD4+ T cells had decreased (P < 0.05) but Tregs and B10 cells (IL-10-producing regulatory B cells) had increased (P < 0.01 and 0.05, respectively), and the increase in Tregs was positively correlated with the decrease in C-reactive protein (CRP) (r = 0.489, P = 0.018). Conclusions: We found that active-stage AS patients have an immunity imbalance of frequency involving multiple types of immune cells, including CD4+T cells, CD8+T cells, Th cells, Tfh cells, Tc cells, Tregs, Bregs, and B cells. TNF-α inhibitor Anbainuo can not only help to inhibit disease activity but can also improve the immune imbalance of CD4+ T cells and negative regulatory cells in frequency. But CD8+ T cells have not been rescued.