<!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}-->
Reaction of metal with oxygen is as follows:
Generally, metals react with oxygen to form metal oxides. These metal oxides are basic in nature.
Metal + Oxygen → Metal oxide
For example, when magnesium burns in air, it combines with the oxygen of air to form magnesium oxide (basic oxide).
Magnesium + Oxygen → Magnesium oxide
<!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}-->
2Mg(s)+O2(g)→+2MgO(s)