Laboratory and astronomical discovery of magnesium dicarbide, MgC
2The paper reports the first laboratory detection of magnesium dicarbide (MgC$_2$) at centimeter wavelengths, confirming its T-shaped structure with a highly ionic Mg–C$_2$ bond. This identification assigns $^{24}$MgC$_2$, $^{25}$MgC$_2$, and $^{26}$MgC$_2$ to 14 previously unidentified lines in the circumstellar envelope of the carbon star IRC+10216. A two-temperature excitation model yields a rotational temperature of $6\pm1$ K, a kinetic temperature of $22\pm13$ K, and a column density of $(1.0 \pm 0.3) \times 10^{12}$ cm$^{-2}$. The relative abundance MgC$_2$:MgCCH:MgC$_4$H:MgC$_6$H = $1{:}2{:}22{:}20$ constrains the radiative association–dissociative recombination pathways for metal-bearing molecules in such environments.