The rapid diversification of a group of organisms into many different species that occupy different niches.