Ankylosing spondylitis is not necessarily inherited by children, but it is somewhat hereditary. The cause of ankylosing spondylitis is still unclear, and it may be genetically linked to a strong association with the human leukocyte-associated antigen HLA-B27, whose positivity rate can be as high as 88% to 96%. The disease usually starts from the sacroiliac joints and gradually spreads to the spine. It occurs in young adults between 16 and 30 years of age and is more common in males, with a clear family history of inheritance. Generally, among the direct descendants of ankylosing spondylitis patients, strong positivity of the HLA-B27 gene occurs, but it is not necessary to develop the disease, but the disease has a certain degree of heredity. If the patient has ankylosing spondylitis, there is an increased chance that the disease will be passed on to the child. It is recommended that babies of patients with ankylosing spondylitis should have regular medical checkups and be evaluated by a specialist to see if the baby has ankylosing spondylitis.