Background: Low back pain (LBP), neck pain (NP), and headache disorders (HD) represent a major health problem in Europe, and consequently in Spain, evidence on temporal trends and coexisting biopsychosocial (BPS) determinants remains limited. We described trends of self-reported LBP, NP and HD, and their ecological association with BPS determinants in the general Spanish population between 2006 and 2023.Methods: A cross-sectional time-series ecological approach was conducted using seven surveys from general Spanish population (161,708 participants). Time-series analyses were estimated using Mann-Kendall test. Pearson’s linear correlation coefficient (r) and Spearman’s rank correlation coefficient (rho) assessed ecological correlations from the year-on-year difference for each variable, with significance at p<0.05. Analyses software: StatGraphics and R.Findings: Self-reported pain-related conditions (SR-PRC) showed non-significant downward trends from 2006 to 2023. Conversely, statistically significant changes were observed in cancer (+0.51%, p=0.03), peptic ulcer (−2.02%, p=0.011), tobacco consumption (p=0.003), cigarette number (p=0.003), and processed meats (−12.74%, p=0.017), sweets (−21.09%, p=0.017), sugary drinks (−13.4%, p=0.003), and pasta/rice consumption (−10.86%, p=0.017). Strong ecological correlations (r>0.8) between SR-PRC and chronic diseases and dietary factors were identified.Interpretation: While SR-PRC prevalence in Spain remained stable, significant changes were identified in cancer, peptic ulcer, tobacco and dietary patterns. Strong ecological correlations between SR-PRC and BPS determinants generate hypotheses about potential population-level associations, requiring future longitudinal studies to clarify individual-level relationships.