The constituent elements of the Book of Daniel were assembled shortly after the end of the Maccabean crisis, which is to say shortly after 164 BCE. The tales making up chapters 2 to 6 are the earliest part, dating from the late 4th or early 3rd centuries. Their setting is Babylon, and there is no reason to doubt that they were composed in the Babylonian diaspora (i.e., among the Jewish community living in Babylon and Mesopotamia under Persian and then Greek rule). They reflect a society in which foreign rulers were not necessarily malevolent (Belshazzar rewards Daniel and raises him to high office); this is a marked contrast with the visions of chapters 7–12, where the sufferings of the Jews are the result of actions by the evil 2nd century BCE king Antiochus IV Epiphanes.