Researchers aren't exactly sure what causes ankylosing spondylitis, but they believe that heredity and a certain type of bacteria may play a role in the development of this spinal condition. Inflammation may also play a role in causing the spine to fuse.