Eating magnesium-rich foods like nuts, seeds, and leafy greens may help support better sleep, reduce stress, and promote a calmer mood.