This study investigated dietary patterns in US adults with diagnosed and undiagnosed diabetes over the last decade and their association with long-term mortality. Using data from NHANES (2007-2018), the researchers analyzed Healthy Eating Index (HEI) and Dietary Inflammatory Index (DII) scores. Results showed a declining HEI score trend across all diabetes groups, with undiagnosed individuals having lower HEI scores than those with diagnosed diabetes. Higher DII scores were observed in both diabetes groups compared to the non-diabetes group. Survival analysis revealed significant associations between HEI/DII scores and all-cause mortality and cause-specific mortality. The study highlights the crucial need for improved dietary management in US adults with diabetes, especially those undiagnosed.