Sympatry is the condition when selection may produce ecotypes living in adjacent habitats in the same geographic area and gives rise to sympatric speciation, i.e., formation of species within a single population by reproductive isolation or without geographical isolation.