Speciation occurs through geographic or reproductive isolation of populations which allows them to evolve independently. There are two patterns of speciation - anagenesis, where a single lineage gradually transforms into a new species, and cladogenesis, where a parent species branches off into one or more new species. Geographic isolation most commonly occurs when a physical barrier divides a population, exposing each group to different selective pressures. Over time, this can lead to the formation of new species through divergent evolution as the isolated groups become increasingly different genetically and phenotypically.