The process by which a single species evolves into multiple species to adapt to different environments.