Aerobic fermentation occurs in the presence of oxygen, while anaerobic fermentation occurs in the absence of oxygen. In aerobic fermentation, oxygen is the final electron acceptor, while in anaerobic fermentation, other molecules serve as electron acceptors.