It becomes anaerobic (without oxygen) towards the end of a set, in the beginning you are using oxygen to "burn" glucose for ATP (energy). Once the oxygen is depleted your cells must shift metabolic pathways and liberate energy from sugar without oxygen (anaerobic). A by product of this anaerobic proccess is lactic acid, once you feel the lactic acid you are in anaerobic territory.