Resumen: While it has long been recognized that diet is a leading behavioral risk factor for human health, recent scientific findings have also suggested that diet and sleep quality may be connected. The purpose of the present study is to evaluate the association between diet and sleep quality among a group of Spanish university students. To do so, a cross-sectional study of 868 students was carried out. Sleep quality was assessed using the Spanish version of the Pittsburgh Sleep Quality Index (PSQI), while diet was assessed using the Spanish Healthy Eating Index (SHEI). The study revealed a noteworthy rate of bad sleepers (51.6%) and students whose diet needed modifications (82.2%). Unhealthy eaters were more likely to have poor sleep quality (aOR = 4.20; CI 95%: 2.07-8.52). The unbalanced intake of vegetables (aOR = 1.63; CI 95%: 1.14-2.34), fruits (aOR = 4.08; CI 95%: 2.90-5.74), dairy products (aOR = 1.96; CI 95%: 1.41-2.72), lean meats (aOR = 1.82; CI 95%: 1.19-2.78), legumes (aOR = 1.43; CI 95%: 1.00-2.02), sweets (aOR = 1.60; CI 95%: 1.13-2.25) and sugary soft drinks (aOR = 1.46; CI 95%: 1.07-1.99) was associated with lower sleep quality. Idioma: Inglés DOI: 10.3390/nu14163291 Año: 2022 Publicado en: Nutrients 14, 16 (2022), 3291 [12 pp.] ISSN: 2072-6643 Factor impacto JCR: 5.9 (2022) Categ. JCR: NUTRITION & DIETETICS rank: 17 / 87 = 0.195 (2022) - Q1 - T1 Factor impacto CITESCORE: 9.0 - Nursing (Q1) - Agricultural and Biological Sciences (Q1)