There is no specific reason for this condition; however, genetic factors could be involved. People who have a gene called HLA-B27 are more likely to develop ankylosing spondylitis. Nevertheless, only some people with the gene develop the condition due to complex interactions between genetics and environmental factors.