Old Testament – Genesis, Exodus, Leviticus, book of Numbers and Deuteronomy – reached their present form in the Persian period (538–332 BC), and their authors were the elite of exilic returnees who controlled the Temple at that time. The books of Joshua, Judges, Samuel and Kings follow, forming a history of Israel from the Conquest of Canaan to the Siege of Jerusalem c. 587 BC. There is a broad consensus among scholars that these originated as a single work (the so-called "Deuteronomistic history") during the Babylonian exile of the 6th century BC. The two Books of Chronicles cover much the same material
Book of Exodus accept God as a cause of events, but in Exodus, everything is presented as the work of God, who appears frequently in person, and the historical setting is only very hazily sketched. The purpose of the book is not to record what really happened, but to reflect the historical experience of the exile community in Babylon and later Jerusalem, facing foreign captivity and the need to come to terms with their understanding of God. Although mythical elements are not so prominent in Exodus as in Genesis, ancient legends have an influence on the book's content: for example, the story of