ABSTRACT: Background: Chronic pain and fatigue are two cardinal features of ankylosing spondylitis (AS) and how to effectively treat these conditions continues to be a challenge. The underlying mechanisms and the relationship between AS-related pain and fatigue remain poorly understood. The present study was conducted, therefore, to explore the brain functional and structural changes associated with pain and fatigue in AS. Methods: A total of 65 AS patients (48 men and 17 women; 32.33 ± 8.6 years) and 53 age- and sex-matched controls were enrolled in the study. The patients underwent clinical assessment based on Total Back Pain scores, Fatigue Severity Scale, Bath Ankylosing Spondylitis Disease Activity Index, (BASDAI), high-sensitivity C-reactive Protein (hsCRP), erythrocyte sedimentation rate (ESR), and Beck Depression Inventory (BDI). Using 3T magnetic resonance imaging (3T-MRI), we analyzed the brain functional (connectivity and nodal properties) and structural (covariance and gray matter volumes) differences between AS patients and controls. Furthermore, we extracted the values of the significantly changed regions in the AS cohort and explored their association with pain and fatigue. Results: In AS patients, there were functional and structural abnormalities distributed in the default mode network (DMN), salience network (SN), sensory/somatomotor network (SMN), dorsal attention network (DAN), task control network (TCN), and visual network, and some regions showed both types of changes. Among these, the functional connectivity (FC) between the left insula and medial prefrontal cortex, the betweenness centrality of the left medial prefrontal cortex and the gray matter volume of the right putamen tracked both pain and fatigue. In addition, pain was related to within-DMN FC disruption and nodal function / gray matter volumes changes in DMN, SN, and the visual network, while fatigue mainly involved the SMN, DAN, and TCN. Moreover, certain changes were also related to BASDAI and inflammation level. Conclusion: This study offers new insights into understanding the neural mechanism of AS-related pain and fatigue, and could help to stratify patients based on the correlation features and ultimately move towards a personalized therapy.