The kings of Israel and Judah were believed to serve as Yhwh’s agents to rule the nation. They were expected to observe his covenant and laws, to defend the nation and engage in offensive war when deemed necessary, and to rule the people with justice and righteousness. Although they were granted wide powers to carry out these tasks, the ancients believed that the kings would suffer divine punishment if they violated the covenant and laws. Yhwh’s prophets would generally announce such judgment against wayward kings when the court officials and priests failed to act.