The exchange of genetic material by interbreeding between populations of the same species or between individuals within a population. Gene flow increases the variation in the genetic composition of a population, whereas barriers to gene flow can give rise to the emergence of new species (see speciation).