<!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}-->
If a substance gains hydrogen or loses oxygen during a reaction, it is said to be reduced and is called an oxidizing agent.
CH4 + 2O2 → CO2 +2H2O
Here, oxygen is an oxidizing agent as it gains hydrogen and reduces to H2O.