Herein, we show that mice with the RA-susceptible DRB1*0401 gene harbor altered patterns of gut microbiome characterized by an abundance and/or lack of specific commensals as compared to mice with the RA-resistant DRB1*0402 gene whose gut microbiomes are shaped by age and sex. Here, HLA-DRB1 is linked to rheumatoid arthritis.