The book of Haggai is Narrative History and Prophetic Oracle. The prophet Haggai wrote it approximately 520 B.C. Haggai is among the most carefully and precisely dated books in the entire Bible. It is a post-exilic book, meaning it was written after (post) the captivity (exile) in Babylon. Key personalities are Haggai, Zerubbabel, and Joshua.
The purpose of this book was that Haggai was called by God to encourage the people to finish the construction of the temple in Jerusalem. The construction had ceased because of opposition and because the neighboring countries, and the Jews were frightened.