Minimally invasive surgery can be done for ankylosing spondylitis, but the results may not be ideal. Total hip replacement or spinal osteotomy is recommended for the treatment of ankylosing spondylitis. The cause of ankylosing spondylitis is not clear, but it cannot be ruled out that it is caused by a combination of genetic and environmental factors. For early-stage patients, general treatment or medication is the mainstay. General treatment includes regular exercise, sleeping on a hard board bed, low pillow, avoiding excessive weight bearing and strenuous exercise. Drug treatment mainly takes diclofenac, methotrexate, sulfasalazine and so on. If the situation is more serious, and there are hip, hip, low back pain, stiffness, hunchback deformity and other conditions, under the guidance of the doctor to take total hip replacement or spinal osteotomy for treatment. If the patient clearly has ankylosing spondylitis, he should go to the rheumatology department of the hospital as soon as possible to find out the problem of early treatment, so as not to delay the condition. If surgery is needed, it is recommended to consult an orthopedic surgeon and choose the appropriate surgical method under the guidance of a professional doctor.