Magnesium is a chemical element, number 12 on the periodic table.
The Paulson Nebula contains small amounts of this element. (TNG: "The Best of Both Worlds")
The planet Arakis Prime in the Delta Quadrant has an atmosphere of magnesium vapor. (VOY: "One Small Step")