IntroductionAthletes frequently experience anxiety and depression at rates similar to or higher than non-athletes. A balanced diet can alleviate athletes internalizing symptoms. Moreover, diet and sleep are all associated with internalising symptoms. Our study investigates how sleep quality mediates the impact of dietary habits on internalizing symptoms in athletes.MethodsThe current cross-sectional study involved 758 Chinese young athletes. The adapted Australian Athletes Diet Index was used to assess dietary patterns, and sleep was measured using the Athletes Sleep Screening Questionnaire. The Generalised Anxiety Disorder 7 scale and the Patient Health Questionnaire 9-item scale were used to assess symptoms of anxiety and depression. Structural Equation Modelling (SEM) analysis was used to examine the mediating role of sleep quality in young athletes. Raw scores of chronotypes, sleep quality, anxiety and depression were calculated for the statistical analysis.ResultsNo significant indirect effects were found in adolescents. In adult athletes, diet mediated the relationship between chronotype and sleep quality (β = −0.028, p < 0.001). Sleep quality mediated the association between diet and anxiety (β = −0.060, p = 0.001), and depression (β = −0.076, p = 0.001). Additionally, diet and sleep quality mediated the association between chronotypes and anxiety (β = −0.028, p = 0.001), and depression (β = −0.028, p = 0.001).ConclusionSleep quality mediated the relationship between dietary patterns and internalising symptoms in young adult athletes. Additionally, diet and sleep quality mediated the association between chronotypes and internalising symptoms in young adult athletes.