how does speciation happen?
two populations became separated/isolation (by a geographical barrier like a river or mountain)
These populations had different gene pools / developed different mutations
Each population was exposed to different environmental conditions (e.g. weather, water levels etc)
Natural selection occurs in the two populations...
...which favours the alleles that best suit each environment
So the two populations become genetically different
Eventually they cannot interbreed to produce fertile offspring