Zechariah’s ministry took place during the reign of Darius the Great (Zechariah 1:1), and was contemporary with Haggai in a post-exilic world after the fall of Jerusalem in 586/7 BC.Ezekiel and Jeremiah wrote prior to the fall of Jerusalem, while continuing to prophecy in the earlier exile period. Scholars believe Ezekiel, with his blending of ceremony and vision, heavily influenced the visionary works of Zechariah 1-8. Zechariah is specific about dating his writing (520-518 BC).
During the Exile many Jews were taken to Babylon, where the prophets told them to make their homes (Jeremiah 29), suggesting they would spend a long period of time there. Eventually freedom did come to many Israelites, when Cyrus the Great overtook the Babylonians in 539 BC. In 538 BC, the famous Edict of Cyrus was released, and the first return took place under Shebazzar. After the death of Cyrus in 530 BC, Darius consolidated power and took office in 522 BC. His system divided the different colonies of the empire into easily manageable districts overseen by governors. Zerubbabel comes into the story, appointed by Darius as governor over the district of Yehud (Judah).
Under the reign of Darius Zechariah also emerged, centering around the rebuilding of the temple. Unlike the Babylonians, the Persian Empire went to great lengths to keep “cordial relations” between vassal and lord. The rebuilding of the temple was encouraged by the leaders of the empire in hopes that it would strengthen the authorities in local contexts. This policy was good politics on the part of the Persians, and the Jews viewed it as a blessing from God.
His name means "God has remembered." Not much is known about Zechariah’s life other than what may be inferred from the book. It has been speculated that his ancestor Iddo was the head of a priestly family who returned with Zerubbabel (Nehemiah 12:4), and that Zechariah may himself have been a priest as well as a prophet. This is supported by Zechariah's interest in the Temple and the priesthood, and from Iddo's preaching in the Books of Chronicles.
Some scholars accept the book as the writings of one individual. For example, George Livingstone Robinson's dissertation on chapters 9-14 concluded that those chapters had their origin in the period between 518 and 516 B.C. and stand in close relation to chapters 1-8, having most probably been composed by Zechariah himself.
Others have concluded that there was more than one contributor to the book. In this view, chapters 1–8 are treated as being the work of the "original" Zechariah. His prophecies and writings were collected by his disciples and his prophetic mantle handed down to other disciples, who bear responsibility for chapters 9–14; so, rather than a single author, there was an inspired tradition of Zechariah after the "original" prophet, and the character of this original is to be found within the lines of chapters 1–8.
The return from exile is the theological premise of prophet's visions in chapters 1-6. Chapters 7–8 address the quality of life God wants his renewed people to enjoy, containing many encouraging promises to them. Chapters 9-14 comprise two "oracles" of the future.
The book begins with a preface (1:1-6), which recalls the nation's past history, for the purpose of presenting a solemn warning to the present generation. Then follows a series of eight visions (1:7-6:8), succeeding one another in one night, which may be regarded as a symbolical history of Israel, intended to furnish consolation to the returned exiles and stir up hope in their minds. The symbolic action, the crowning of Joshua (6:9-15), describes how the kingdoms of the world become the kingdom of God's Messiah.
Chapters 7 and 8, delivered two years later, are an answer to the question whether the days of mourning for the destruction of the city should be kept any longer, and an encouraging address to the people, assuring them of God's presence and blessing.
The purpose of this book is not strictly historical but theological and pastoral. The main emphasis is that God is at work and plans to live again with His people in Jerusalem. He will save them from their enemies and cleanse them from sin.
Zechariah's concern for purity is apparent in the temple, priesthood and all areas of life as the prophecy gradually eliminates the influence of the governor in favour of the high priest, and the sanctuary becomes ever more clearly the centre of messianic fulfillment. The prominence of prophecy is quite apparent in Zechariah, but it is also true that Zechariah (along with Haggai) allows prophecy to yield to the priesthood; this is particularly apparent in comparing Zechariah to "Third Isaiah" (chapters 55–56 of the Book of Isaiah), whose author was active sometime after the first return from exile.
Most Christian commentators read the series of predictions in chapters 7 to 14 as Messianic prophecies, either directly or indirectly. These chapters helped the writers of the Gospels understand Jesus’ suffering, death and resurrection, which they quoted as they wrote of Jesus’ final days  . Much of the Book of Revelation, which narrates the denouement of history, is also colored by images in Zechariah.