Exercise is the most important part of ankylosing spondylitis treatment. Other treatment options include medication, physical therapy, and maintaining a good posture.