The destruction of the First Temple of Jerusalem by the Babylonians (586 BC) and the subsequent exile of the Jews led to hopes for national restoration under the leadership of a messiah. The Jews were later allowed to return by the Persians, but an unsuccessful rebellion against Roman rule led to the destruction of the Second Temple in AD 70 and the Jews' dispersal throughout the world in the Jewish Diaspora.
Rabbinic Judaism emerged to replace the temple cult at Jerusalem, as the Jews carried on their culture and religion through a tradition of scholarship and strict observance. The great body of oral law and commentaries were committed to writing in the Talmud and Mishna. The religion was maintained despite severe persecutions in many nations.
Two branches of Judaism emerged in the Middle Ages: the Sephardi, centered in Spain and culturally linked with the Babylonian Jews; and the Ashkenazi, centered in France and Germany and linked with the Jewish culture of Palestine and Rome. Elements of mysticism also appeared, notably the esoteric writings of the Kabbala and, in the 18th century, the movement known as Hasidism. The 18th century was also the time of the Jewish Enlightenment, or Haskala. Conservative and Reform Judaism emerged in 19th-century Germany as an effort to modify the strictness of Orthodox