Metals react with oxygen to make a metal oxide. As the metal gains oxygen this is known as an oxidation reaction. If we look at the following example of burning magnesium:
Magnesium + oxygen → magnesium oxide
In terms of oxygen gain or loss, if a metal gains oxygen we call it an oxidation reaction, if a compound loses oxygen we call it a reduction reaction.