The movements of continents affect evolution by altering habitats, creating barriers to gene flow, and promoting speciation. As continents drift, they can form new environments and change climate patterns, leading to the evolution of new species adapted to these changes. Additionally, the separation of landmasses can isolate populations, allowing them to evolve independently and eventually diverge into distinct species.