I'm pretty sure it's both. Allopatric speciation occurs when there is a physical barrier formed like a mountain or river. and Sympatric speciation occurs when there is a genetic barrier formed like a mutation that causes a different mating season or preference in mate choice.
hope this helps!