A chemical element, commonly found in rocky materials, that emits characteristic spectral lines when heated.Magnesium is a chemical element with symbol Mg and atomic number 12. It is a shiny gray solid that is highly reactive, and it is the eighth most abundant element in Earth's crust. In astrophysics and spectroscopy, magnesium is significant because it produces strong characteristic spectral lines in the visible and ultraviolet ranges, making it a key tracer of stellar composition and interstellar matter.
Magnesium was first isolated by Humphry Davy in 1808, who electrolyzed a mixture of magnesia and mercuric oxide. Its spectral lines were studied in the 19th century as spectroscopy developed.
When magnesium atoms are heated or excited—for instance, in a star's atmosphere or in a laboratory flame—their electrons jump to higher energy levels. When they fall back, they emit photons at specific wavelengths, producing emission lines. Conversely, cool magnesium gas absorbs those same wavelengths, creating absorption lines in spectra. These lines act as fingerprints, allowing astronomers to identify magnesium in distant objects and measure its abundance.
Magnesium is used in lightweight alloys for aerospace and automotive industries, and its spectral lines are used in astronomy to study stellar evolution and the chemical composition of galaxies.
Magnesium is the central atom in chlorophyll, the molecule that allows plants to photosynthesize, and its spectral lines are used to detect the presence of life-supporting planets indirectly.









