Ankylosing spondylitis is a form of arthritis that primarily affects your spine. It causes severe inflammation of the vertebrae that might eventually lead to chronic pain and disability. In more advanced cases, the inflammation can cause new bone to form on the spine, which may lead to deformity.