Ankylosing spondylitis is a condition that primarily affects the low back and spinal joints. It can affect the foot with an inflammatory arthritis and heel pain.