In metals, the valence band, and conduction band overlap.
The electrons present in the valence band can easily participate in the conduction of electricity.
The two electrons present in orbital are the valence electrons. They are responsible for conducting electricity.
Magnesium is an electropositive element.
Metals lose electrons in their valence shell to attain a stable configuration. Therefore they are electropositive elements.
Nonmetals on the other hand gain electrons to attain a stable configuration. Therefore they are called electronegative elements.
Magnesium has two valence electrons are present in orbital. It loses them to become more stable.
Hence, magnesium is an electropositive element.
The ionization enthalpy of magnesium is low.
Metals generally have less ionization enthalpy than nonmetals because the valence electrons in the case of metals are more loosely bound.
In the case of group 1 and group 2 metals, the valence electrons are present in the orbital. Very less energy is required to remove an electron from orbitals orbital as compared to the orbital.
In the case of magnesium, the two valence electrons are present in orbital.
Hence, magnesium has a low ionization enthalpy.
Hence due to the above three reasons, magnesium is considered a metal.