The dispersal of, and adaptation to new environments by, a line of animals or plants, resulting in the evolution of divergent forms, often new species, specialized for surviving the new habitats.