The transfer of electrons between chemical species, often involving the gain or loss of oxygen molecules or hydrogen ions.