The blood test is very important for the diagnosis of ankylosing spondylitis, the main blood tests are the following: 1. Human leukocyte antigen B27, because the occurrence of ankylosing spondylitis is related to genetic factors, genetic factors mainly refers to human leukocyte antigen B27, which is prescribed by doctors HLA-B27. 2. Inflammatory indicators, such as blood sedimentation, C-reactive protein, routine blood count, and urine routine are often tested. In addition, liver and kidney function needs to be monitored before, after, and during the use of medication, and regular visits to the hospital are required to test these indicators.