The relationship between structural damage and inflammation of the spine and the sagittal imbalance in ankylosing spondylitis (AS) is not well understood. The present study aimed to investigate the correlation between structural damage and inflammation of the lumbar spine and the sagittal imbalance in AS patients with thoracolumbar kyphosis. Forty-five AS patients with thoracolumbar kyphosis were retrospectively reviewed. Six sagittal spinal parameters, including the C7 tilt (C7T), spino-sacral angle (SSA), global kyphosis (GK), the sagittal vertical axis (SVA), thoracic kyphosis (TK), and lumbar lordosis (LL), were measured. Structural damage of the lumbar spine was assessed by the modified Stoke AS Spine Score (mSASSS) on radiographs. Lumbar spinal inflammation was evaluated by the AS spinal magnetic resonance imaging (MRI) activity (ASspiMRI-a) on MRI. Correlation analysis was performed using the paired sample t-test. Multivariable linear regression models were constructed to analyze the contributions of mSASSS and ASspiMRI-a to the sagittal parameters. The average values of the sagittal parameters C7T, SSA, GK, SVA, TK, and LL were 68.1°, 80.1°, 77.3°, 168.7 mm, 47.7°, and -0.7°, respectively. The average mSASSS and ASspiMRI-a scores were 9.8 and 10.8, respectively. Correlation analysis showed that the mSASSS and ASspiMRI-a were correlated with C7T, SSA, SVA, and LL (the Spearman correlation coefficients were -0.439, -0.390, 0.424, and 0.530 for mSASSS; -0.406, -0.402, 0.378, and 0.486 for ASspiMRI-a; P<0.05). The C7T, SSA, and SVA were significantly correlated with LL (r=-0.696, -0.779, and 0.633, respectively; P<0.05). There was a weak correlation between the mSASSS and ASspiMRI-a (β=0.299, P=0.046). The multivariable regression models indicated that the sagittal imbalance was determined to a greater extent by the mSASSS than ASspiMRI-a (the β values were -1.550 vs. -0.649 for C7T, -1.865 vs. -1.231 for SSA, 9.161 vs. 3.823 for SVA, and 3.128 vs. 1.717 for LL). Both structural damage and inflammation of the lumbar spine contributed to the sagittal imbalance in AS patients with thoracolumbar kyphosis. In the late stages of AS, the sagittal imbalance was more attributable to the structural damage than the inflammation of the lumbar spine.