The answer could be allopatric or sympatric speciation depending on the cause of speciation. A population living in the same habitat could be separated by a physical barrier hence restricting gene flow in the population. On the other hand, sympatric speciation refers to the formation of different species from a population that is in the same habitat and geographical area without any physical separation. This could be due to differences in mating tendencies of individuals in the population