The occasion of writing. The prophet had before him a very practical aim, the awakening of a popular enthusiasm among his fellow-countrymen for erecting or completing the second Temple. According to Ezra (Haggai 1-6) there had been an immediate return of exiles from Babylonia to Judah after the permissive decree of Cyrus in 538 b.c. These exiles had promptly begun to build a new Temple on the hallowed site of the old one, now in ruins. They had been checked by Samaritan opposition, and for sixteen years the work of rebuilding had been neglected. At best the work accomplished had been slight, and, as a whole, was still to be achieved.
The prophet clearly addresses a people who need to be roused into activity. The hopes created by the generosity and friendliness of Cyrus had been crushed by the pressure of Samaritan jealousy in Palestine, and by the neglect of the successor of Cyrus. They had experienced a series of barren seasons, and were desperately poor. As a community they had lost heart, and needed some impelling power to give them renewed enthusiasm and hopefulness.
The voice of Haggai was uplifted at just the right moment. Whether old or young, whether he had bided his time all these years, or was seized by his first inspiration for leadership, he was the man of the hour. He saw in a political crisis his people's opportunity to go forward with the enterprise which would be of supreme spiritual significance for them, the building of the Temple.
The political crisis of which he took such instant advantage was the assumption of the throne of Persia by Darius Hystaspes, or Darius the Great. Darius had no indisputable claim to the throne; and found himself at the outset compelled to exhibit his ability to subdue and rule the farreaching provinces of his empire. The outcome was for some time in doubt. There was a 'shaking of the nations' on every side, and meanwhile the loyal peoples of Syria were left very much to their own devices. It was a crisis which seemed likely to become an opportunity. Darius was likely to prove a friend to the returned exiles, and to secure their friendship by withdrawing the prohibition of the work issued by his predecessor (Ezra 4:5; Ezra 4:24), and Haggai seized the opportunity to rouse the dormant energies and ambitions of the people.