In our study, HAMD‐17 score, DRB1*03:01 allele, age, ALP levels, and IgM levels were independent risk factors for cirrhosis in Lasso‐logistic regression model. This evidence concerns the gene HLA-DRB1 and Cirrhosis.