It goes back at least to the early 1800s and builds from there. Colonisation and nationalism, plus world wars led to increased friction between Jews and others in North Africa, the Ottoman Empire, Arabia, and elsewhere. Jews were pushed and pulled towards the future Israel.
https://en.wikipedia.org/wiki/Jewish_exodus_from_the_Muslim_...