Judaism came to Babylonia as a direct result of the Bar Kokhba revolt, when refugee scholars fleeing from Judaea established academies in what was then the territory of the Parthians. These schools were centralized at Sura, south of what is now Baghdad, and at Pumbedita to the west, where they flourished until the eleventh century.