An anaerobic pathway implies no oxygen. An ancient example is glycolysis. Cells convert glucose (sugar) to pyruvate and generate a bit of ATP (energy) along with electron carriers (NADH).
If cells have a mitochondria and oxygen is available, pyruvate gets transported into the mitochondria and transformed into acetyl-coa. Acetyl-coa can jump into the TCA (Kreb's cycle) to get oxidized and generate some electron carriers (NADH & FADH2) and GTP (energy). The point of this is for the electron carriers to drop off the electrons to the ETC in the mitochondrial inner membrane. The electrons get passed along the ETC and generate a proton gradient in the inter-membrane space that drives ATP synthesis via ATP synthase. The final electron acceptor in the ETC is oxygen, which is why this path is called "aerobic".
Location wise, glycolysis (anaerobic) occurs in the cytosol and TCA / ETC (aerobic) occur in the mitochondria. Hope this helps!