Both allopatric and sympatric speciation occurs due to reproductive isolation between populations of the same species. Allopatric speciation involves a physical barrier such as a river or mountain separating populations whereas sympatric speciation occurs without geographical isolation.