There is no cure for ankylosing spondylitis, but treatment can help reduce pain and improve function. Treatment options include medications, exercise, physical therapy, and surgery.