ABSTRACT: OBJECTIVE:Opioid analgesics may be prescribed to ankylosing spondylitis (AS) patients with pain that is unresponsive to antirheumatic treatment. Our study assessed factors associated with opioid usage in AS. METHODS:A prospective cohort of 706 patients with AS meeting modified New York criteria followed at least 2 years underwent comprehensive clinical evaluation of disease activity and functional impairment. These were assessed by the Bath Ankylosing Spondylitis Disease Activity Index (BASDAI) and Bath Ankylosing Spondylitis Functional Index (BASFI). Radiographic severity was assessed by the Bath Ankylosing Spondylitis Radiology Index and modified Stokes Ankylosing Spondylitis Scoring System. Medications taken concurrently with opioids, as well as C-reactive protein (CRP) levels and erythrocyte sedimentation rate (ESR), were determined at each study visit, performed every 6 months. Analyses were carried out at baseline, and longitudinal multivariable models were developed to identify factors independently associated with chronic and intermittent opioid usage over time. RESULTS:Factors significantly associated with opioid usage, especially chronic opioid use, included longer disease duration, smoking, lack of exercise, higher disease activity (BASDAI) and functional impairment (BASFI), depression, radiographic severity, and cardiovascular disease. Patients taking opioids were more likely to be using anxiolytic, hypnotic, antidepressant, and muscle relaxant medications. Multivariable analysis underscored the association with smoking, older age, antitumor necrosis factor agent use, and psychoactive drugs, as well as with subjective but not objective determinants of disease activity. CONCLUSION:Opioid usage was more likely to be associated with subjective measures (depression, BASDAI, BASFI) than objective measures (CRP, ESR), suggesting that pain in AS may derive from sources other than spinal inflammation alone.