Some of the top magnesium-rich foods include dark leafy greens, nuts, seeds, beans, whole grains, avocados, bananas, fatty fish, yogurt, and dark chocolate.