MedChunk
Medically reviewed

What Causes Ankylosing Spondylitis? Triggers and Treatment

Learn what causes ankylosing spondylitis, how genes and environmental factors may contribute, which risk factors matter, and how treatment helps control inflammation.

By Caleb Bennett Reviewed by Dr. Irene Medical review dateNov 19, 2026 12 min read

Ankylosing spondylitis (AS) develops through a combination of genetic risk and possibly environmental influences that lead to long-term inflammation in the joints of the spine. The exact cause is not yet known, and carrying a risk-related gene does not mean someone will develop the condition. Treatment focuses on reducing inflammation and pain, maintaining movement, and helping prevent lasting changes to the spine.

What causes ankylosing spondylitis?

The exact cause of ankylosing spondylitis remains uncertain. Researchers believe that inherited genes and environmental factors both play a role in its development. The condition involves inflammation in the joints and ligaments of the spine, particularly around the joints connecting the lower spine to the pelvis.

According to the NHS explanation of ankylosing spondylitis causes, a gene variation called HLA-B27 is strongly associated with the condition. However, this genetic link does not explain every case. Some people with ankylosing spondylitis do not carry HLA-B27, while many people who carry it never develop the disease.

How does the HLA-B27 gene affect the risk?

HLA-B27 is a variation of a gene involved in the immune system. It helps influence how the body recognizes and responds to substances that may be harmful. Having this variation is associated with a higher likelihood of developing ankylosing spondylitis, but it is not a guarantee that the condition will occur.

The National Institute of Arthritis and Musculoskeletal and Skin Diseases (NIAMS) explains that HLA-B27 is the main known genetic risk factor, although researchers have identified other genetic variations that may also contribute. This suggests that the condition is influenced by more than one gene rather than being determined by a single inherited factor.

Genetic testing can sometimes help doctors assess a person's risk when symptoms suggest ankylosing spondylitis. However, a positive HLA-B27 result cannot confirm the diagnosis by itself. Doctors consider it alongside symptoms, medical history, examination findings, and imaging results.

What environmental factors may trigger ankylosing spondylitis?

Environmental factors may contribute to the development of ankylosing spondylitis in people who already have a genetic tendency toward the condition. However, researchers have not identified the specific environmental factors responsible.

This means there is no established single exposure, food, injury, or everyday habit that can be identified as the cause of ankylosing spondylitis in an individual. The condition is not simply the result of poor posture, lack of exercise, or something a person has done wrong.

Can an infection trigger the condition?

Researchers continue to investigate how genetic and environmental influences interact in ankylosing spondylitis. However, the specific environmental triggers involved have not been established. It would therefore be inaccurate to say that a particular infection causes ankylosing spondylitis in every affected person or that a past infection explains an individual diagnosis.

Are disease triggers the same as symptom flares?

No. A factor involved in the development of a disease is different from something that may be associated with a temporary increase in symptoms. Ankylosing spondylitis can involve periods when pain and stiffness become more noticeable, followed by periods when symptoms improve.

NIAMS describes these changes as flares and periods of remission. However, a flare does not necessarily mean that the underlying condition has developed or progressed because of one particular activity or exposure. Paying attention to changes in symptoms can help people discuss their experiences with their healthcare team.

Who has a higher risk of developing ankylosing spondylitis?

Anyone can develop ankylosing spondylitis, but certain factors are associated with a greater likelihood of the condition. These include:

  • Family history: Having a close family member with ankylosing spondylitis may increase the likelihood of developing it. Genetic factors can be inherited within families.
  • HLA-B27 gene variation: Carrying this gene variation is associated with a higher risk, although most people who have it do not develop ankylosing spondylitis.
  • Age: Symptoms commonly begin before age 45. Early symptoms often appear during the teenage years or young adulthood, although the condition can also occur in children.
  • Sex: Ankylosing spondylitis is more common and may be more severe in men, although women can also develop it.
  • Other inflammatory conditions: People with Crohn's disease, ulcerative colitis, or psoriasis may have a higher likelihood of developing ankylosing spondylitis.

MedlinePlus information on ankylosing spondylitis describes these genetic, age-related, and medical factors as contributors to risk. Having one or more of them does not establish that someone has the condition.

How does ankylosing spondylitis affect the spine?

Ankylosing spondylitis causes inflammation in joints and tissues associated with the spine. It often affects the sacroiliac joints, which connect the lower part of the spine to the pelvis. Inflammation can lead to pain and stiffness, especially in the lower back and hips.

Over time, ongoing inflammation may cause new bone to form in affected areas. In some people, this new bone can gradually connect nearby vertebrae, causing parts of the spine to fuse. This process is called ankylosis. When fusion occurs, the spine may become less flexible, making bending and other movements more difficult.

The condition does not progress in the same way for everyone. Some people experience relatively limited symptoms, while others develop more significant spinal stiffness or inflammation in other joints.

What treatments help control ankylosing spondylitis?

There is currently no cure for ankylosing spondylitis, but several treatments can reduce symptoms, control inflammation, and help preserve movement. Treatment usually combines physical activity, physiotherapy, and medication. The approach depends on disease activity, symptoms, other medical conditions, and how well previous treatments have worked.

1. Exercise and physiotherapy

Regular movement is an important part of treatment. Physical activity can help reduce stiffness, maintain flexibility, improve posture, and strengthen the muscles that support the spine.

A physiotherapist can develop an exercise programme suited to a person's ability and symptoms. It may include:

  • Stretching exercises: These help maintain flexibility in the spine, hips, and surrounding muscles.
  • Range-of-motion exercises: These help maintain movement in affected joints.
  • Strengthening exercises: Exercises for the back, abdominal muscles, and other supporting muscles can help improve stability and posture.
  • Posture exercises: These help people practise positions that support a more upright posture.
  • Water-based exercise: Swimming and hydrotherapy may make movement easier because water supports the body while exercising.

The NHS guidance on ankylosing spondylitis treatment identifies exercise and physiotherapy as central parts of care. A physiotherapist can also help adjust activities when pain or stiffness makes certain movements difficult.

2. Nonsteroidal anti-inflammatory drugs (NSAIDs)

NSAIDs are commonly used to reduce pain and inflammation associated with ankylosing spondylitis. Examples include ibuprofen and naproxen. These medicines may help reduce morning stiffness and discomfort during movement.

A healthcare professional may recommend an appropriate medicine and dose based on the person's medical history and response to treatment. NSAIDs can irritate the stomach and may cause gastrointestinal bleeding, so they are not suitable for everyone. Using the lowest effective dose for the recommended period can help reduce medication-related risks.

3. Biologic medicines

When symptoms remain difficult to control with NSAIDs and exercise, a rheumatologist may consider biologic medicines. These medicines target specific parts of the immune system involved in inflammation.

Common treatment groups include:

  • TNF inhibitors: These medicines block tumour necrosis factor, a protein involved in inflammation. They can help reduce inflammation and related symptoms.
  • IL-17 inhibitors: These medicines block interleukin-17, another protein involved in inflammatory activity.

Biologic medicines may be given as injections under the skin or through an intravenous line, depending on the medicine. They can increase the risk of certain infections, so a healthcare professional needs to review a person's medical history and monitor treatment.

4. JAK inhibitors

Janus kinase (JAK) inhibitors are targeted medicines that work by blocking enzymes involved in immune-system signalling. These medicines are taken by mouth and may be considered when other treatment options have not worked well enough or are unsuitable.

JAK inhibitors can increase the risk of infections and other side effects. A rheumatologist must assess their suitability and monitor their use.

Mayo Clinic's ankylosing spondylitis treatment guidance describes NSAIDs, TNF blockers, IL-17 inhibitors, and JAK inhibitors as treatment options. The choice depends on individual circumstances rather than a single medicine being appropriate for everyone.

5. Corticosteroid injections and other medicines

Corticosteroid injections may be used when a particular joint outside the spine becomes inflamed. These medicines have a strong anti-inflammatory effect and may provide temporary relief in the affected area.

Some conventional disease-modifying antirheumatic drugs, such as sulfasalazine or methotrexate, may also be considered when inflammation affects joints outside the spine. They are generally not effective for inflammation limited to the spine itself.

These treatments are selected according to the affected joints, symptoms, and other health considerations. They are not interchangeable with biologic medicines or routine pain relief.

6. Surgery for severe joint damage

Most people with ankylosing spondylitis do not need surgery. However, surgery may be considered when joint damage causes severe pain or substantially limits daily activities.

For example, a severely damaged hip joint may require a joint replacement. In rare cases, surgery may be considered to correct a badly bent spine or address other serious complications.

The NIAMS treatment guidance explains that surgery is generally reserved for selected cases involving significant joint damage or other serious problems.

What can help manage ankylosing spondylitis over time?

Medical treatment is important, but everyday habits can also support mobility and general health. Practical steps include:

  • Stay physically active: Follow a regular exercise routine recommended by a healthcare professional or physiotherapist.
  • Maintain good posture: Pay attention to posture during sitting, standing, and walking.
  • Avoid smoking: Smoking can make breathing difficulties more troublesome, particularly when ankylosing spondylitis affects the joints around the ribs.
  • Attend follow-up appointments: Regular reviews help the healthcare team assess symptoms, treatment response, mobility, and possible medication side effects.
  • Report new symptoms: Let a healthcare professional know about new joint problems, persistent digestive symptoms, or eye pain and redness.

It is important not to stop prescribed medication or change an exercise programme without discussing it with the treating healthcare professional. Treatment plans may need adjustment as symptoms and disease activity change.

When should someone seek medical evaluation?

Persistent lower back or hip pain, especially when accompanied by stiffness after rest or during the morning, should be evaluated by a healthcare professional. This is particularly relevant when symptoms begin at a younger age or there is a family history of inflammatory arthritis.

A rheumatologist can assess the pattern of symptoms, examine joint movement, review family and medical history, and arrange blood tests or imaging when appropriate. An HLA-B27 blood test may provide useful information, but neither a positive nor a negative result confirms or rules out the condition on its own.

Sudden eye pain, redness, light sensitivity, or blurred vision needs prompt medical attention because ankylosing spondylitis can be associated with uveitis, an inflammation inside the eye.

Frequently Asked Questions

Common questions about the causes, possible triggers, and treatment of ankylosing spondylitis.

Does HLA-B27 always cause ankylosing spondylitis?

No. HLA-B27 is a genetic risk factor, not a direct or guaranteed cause. Many people carry this gene variation without developing ankylosing spondylitis, and some people with the condition do not have the variation.

Can ankylosing spondylitis develop without a family history?

Yes. A family history can increase the likelihood of developing ankylosing spondylitis, but it is not required. The condition can develop in people who have no known affected relatives because genetic and environmental influences both appear to play a role.

Can stress or certain foods cause ankylosing spondylitis?

The exact environmental triggers of ankylosing spondylitis have not been identified. There is no established evidence that a particular food or everyday stressful event directly causes the condition. A balanced diet and appropriate physical activity can support general health, but they do not replace medical treatment.

Can ankylosing spondylitis be treated without surgery?

Yes. Most people are treated with a combination of exercise, physiotherapy, and medication. Surgery is usually considered only when there is severe joint damage, substantial loss of function, or another serious problem that requires an operation.

Can ankylosing spondylitis be prevented?

There is currently no proven way to prevent ankylosing spondylitis because its exact cause is unknown and genetic factors play an important role. Early medical assessment and appropriate treatment can help manage symptoms and reduce the impact of the condition over time.

Citations

  1. NHS – Causes of Ankylosing Spondylitis
  2. National Institute of Arthritis and Musculoskeletal and Skin Diseases (NIAMS) – Ankylosing Spondylitis: Symptoms, Risk Factors, and Causes
  3. MedlinePlus – Ankylosing Spondylitis
  4. NHS – Treatment of Ankylosing Spondylitis
  5. Mayo Clinic – Ankylosing Spondylitis: Diagnosis and Treatment
  6. National Institute of Arthritis and Musculoskeletal and Skin Diseases (NIAMS) – Ankylosing Spondylitis: Diagnosis, Treatment, and Steps to Take
Share this article