Medically reviewed by Jonathan Purtell, RDN Nuts and seeds are two food groups with some of the highest levels of magnesium.