Magnesium has many benefits, including supporting quality sleep and bone health. Foods high in the nutrient include spinach, pumpkin seeds, and avocados.