When oxygen is removed from a compound or when an atom or ion gains electrons
Adding oxygen to a substance is oxidation, removal of oxygen is called reduction. OILRIG, oxidation is loss, reduction is gain of electrons.