Unhealthy diet has been associated with overweight, obesity, increased cardiometabolic risk, and recently, to impaired cognition and academic performance. The aim of this review is to provide an overview of the associations between health behaviors and cognition and academic achievement in children and adolescents under 18 years of age with a special reference to diet quality. Dietary patterns with a low consumption of fish, fruits, and vegetables, and high in fast food, sausages, and soft drinks have been linked to poor cognition and academic achievement. The studies on the associations between the high intake of saturated fat and red meat and low intake of fiber and high-fiber grain products with cognition are limited. The available evidence and physiological mechanisms suggest that diet may have direct, indirect, and synergistic effects on brain and cognition with physical activity, sedentary behaviors, cardiometabolic health, and sleep, but the associations have been modest. Therefore, integrating a healthy diet, physically active lifestyle, and adequate sleep may provide optimal circumstances for brain development and learning. We conclude that most of the existing literature is contained in cross-sectional studies, which therefore highlights the need for longitudinal and intervention studies on the effects of diet, physical activity, sedentary behavior, and sleep on cognition and academic performance.