There are no recognised preventative measures for ankylosing spondylitis. Although you may not be aware of anyone in your family who has identical symptoms, the ailment is mostly caused by genetics.