Background: It is well known that systemic chronic inflammation (SCI), which can be modulated by diet, is associated with poor sleep outcomes. However, the role of SCI in diet health and sleep quality relationship has not been well established. Methods: Here, by using the UK Biobank data set, we assessed the association between markers of SCI (leukocyte, platelet, lymphocyte, neutrophil, and basophil counts; C-reactive protein levels and neutrophil to lymphocyte ratio (NLR)), habitual intake of food groups, diet health and sleep quality in 449,084 participants. We also formally tested the possibility that SCI might mediate the relationship between diet health and sleep quality. Results: Our results revealed (i) negative associations between SCI and food groups that are abundant in healthy diets (fruit, vegetable and oily and non-oily fish) and (ii) positive associations between SCI and food groups that are abundant in unhealthy diets (processed meat). Sleep quality was also negatively associated with platelet counts, CRP levels and NLR. Crucially, however, while platelet and neutrophil counts, CRP levels and NLR fully mediated the association between diet health and sleep quality, leukocyte, lymphocyte and basophil counts partially mediated the associations between diet health and sleep quality. Conclusion: Reducing SCI via dietary interventions could be an effective primary and/or complementary strategy to increase sleep quality. Further interventional trials are warranted to (i) establish the strength of associations, preferably by using validated diet and sleep measures and (ii) examine longer term effects of anti-inflammatory diets on sleep-, diet- and inflammation-related health outcomes.