Today, magnesium has been used to make a variety of lightweight electronic devices like cell phones, laptops, and cameras. Magnesium compounds, meanwhile, are used to make inks, glass, rubber, pharmaceuticals, and food additives.