When Babylon became less friendly under Muslim rule (their friendliness fluctuated), Jews found refuge in Spain under Christian rule.  This went very well, but didn't take long until the Jews did better under the Muslims once again.
{}