Haggai was a prophet of the restored remnant after the 70 years' captivity. The circumstances are detailed in Ezra and Nehemiah. To hearten, rebuke, and instruct that feeble and divided remnant was the task of Haggai, Zechariah, and Malachi. The theme of Haggai is the unfinished temple, and his mission to admonish and encourage the builders.
The divisions of the book are marked by the formula, "came the word of the Lord by Haggai":