Ankylosing spondylitis (AS) is a chronic inflammatory condition that primarily affects the joints and bones at the base of the spine. It leads to pain and stiffness that can significantly impair daily activities. It can also affect other body areas, including the eyes, heart, and lungs.