Ankylosing spondylitis is a type of arthritis that affects the spine. Arthritis is a family of diseases that causes inflammation and pain in the joints. Inflammation from ankylosing spondylitis can fuse the vertebrae in the spine. This can make it hard to move.