Selenium, a non-metal, reacts with magnesium metal to form an ionic compound, magnesium selenide (MgSe). The reaction involves magnesium donating electrons to selenium:
\[
\text{Mg} + \text Se \to \text{MgSe}.
\]
Answer: Forms magnesium selenide (MgSe).