All it took was a single person who was a wanderer from each isolated community. I’ve read a number of articles that estimate, based on genetics, that every person living has a common ancestor who lived 2000-4000 years ago. It could have been a peasant in rural Tibet or a South Pacific Islander or someone(s) else entirely.
https://sci-hub.st/10.1038/nature02842