Zechariah the prophet wrote to encourage the people of Israel to put away the sin in their lives and to continue rebuilding the Temple. Zechariah spoke to the people enduring hardships, whom were discouraged because of their relative small population and having an inadequate Temple to worship in.
Zechariah blended prophecies of the present, near future and distant future. He also mentioned the coming Messiah whom will come both to rescue His people from sin and to reign over them as King. The Messiah will establish His kingdom, conquer all his enemies and rule over all the earth. Everything will one day be under his loving and powerful control.