Magnesium silicide, Mg2Si, is an inorganic compound consisting of magnesium and silicon. As-grown Mg2Si usually forms black crystals; they are semiconductors with n-type conductivity and have potential applications in thermoelectric generators.