It happens when two communities of a species evolve segregated by a geographic boundary and undergo an entirely different evolutionary way due to particular pressures originating from a modern atmosphere.
Darwin's finches are the most famous example of divergent evolution. It is an aspect of adaptive radiation.
Dogs and wolves are known to be common ancestors due to divergent evolution.