Chronic inflammation is closely linked to Chronic Obstructive Pulmonary Disease (COPD); however, the impact of the Dietaryq Inflammatory Index (DII) on mortality among COPD patients remains uncertain. To assess the correlation between the DII and all-cause mortality in COPD patients using data from the National Health and Nutrition Examination Survey (NHANES). We conducted a retrospective cohort study on 1,820 COPD patients from the NHANES dataset (1999-2018). The influence of DII on mortality was evaluated using multivariate Cox regression, smoothing spline fitting, and threshold effect analysis. Additionally, Kaplan-Meier survival analysis was performed to compare survival curves among different DII groups. Subgroup analyses and E-values identified sensitive cohorts and assessed unmeasured confounding. Over an average follow-up of 91 months, multivariate Cox regression models revealed a significant positive correlation between DII scores and mortality risk, with each unit increase in DII associated with a 10% higher risk of death (HR: 1.10, 95% CI: 1.03-1.16; P = 0.002). Among the DII tertiles, individuals in the second tertile (T2: 1.23-2.94) experienced a 67% increase in mortality risk compared to those in the lowest tertile (T1: -5.28-1.23) (HR: 1.67, 95% CI: 1.26-2.21; p < 0.001). The third tertile (T3) did not show a statistically significant increase in mortality risk (HR: 1.30, 95% CI: 0.98-1.72; p=0.074). A restricted cubic spline analysis indicated a significant nonlinear association between DII and all-cause mortality (p = 0.021). Threshold effect analysis further revealed that below a DII of 2.19, there was a significant increase in all-cause mortality risk (HR = 1.19, 95% CI: 1.07-1.33; p = 0.002), while at or above this threshold, the risk increase was not statistically significant (HR=0.89, 95% CI: 0.68-1.15; p = 0.380). Kaplan-Meier analysis revealed significant differences in survival curves among DII tertiles (p < 0.001), with the lowest DII tertile showing the highest survival probability. Both subgroup and sensitivity analyses confirmed the robustness of these findings. DII is positively correlated with mortality risk in COPD patients, showing nonlinear characteristics and threshold effects, underscoring its prognostic value.