2 Kings 11:17

And Jehoiada made a covenant between the LORD and the king and the people, that they should be the LORD’s people; between the king also and the people.

When Joash was acclaimed as king, those who joined in setting him on the throne solemnly renewed their pledge to be the Lord's own people. That renewal of allegiance took place once the influence of Athaliah had been removed and the worship of Baal had been overthrown and destroyed. In the wake of the covenant, rejoicing spread through Judah and peace rested upon the kingdom.