It was written in 520 BCE .
The historical setting dates around 520 BCE before the Temple has been rebuilt . 520 BCE falls between the start of the Persian empire in 539 BCE and 520 BCE a period that saw major kings such as Zerubbabel helped lead the Jews in their return to the land .