Ankylosing spondylitis is a type of arthritis characterized by inflammation of the joints and ligaments in the spine, as well as peripheral joints such as those in the hips, knees, and ankles. This inflammation can lead to joint stiffness, significantly affecting movement and flexibility. In more severe cases, it may result in the fusion of vertebrae, which further decreases spinal flexibility and increases rigidity.