What type of reaction is this 2Mg plus O2 equals 2MgO?

Mg equals mg2+ +2e-