Breakdown of an organic chemical compound by microorganism in the presence of oxygen to carbon dioxide, water and mineral salts of any other elements present (mineralization) and new biomass or in the absence of oxygen to carbon dioxide, methane, mineral salts and new biomass.