17 And Jehoiada made an agreement between the Lord and the king and the people, that they would be the Lord's people; and in the same way between the king and the people. 18 Then all the people of the land went to the house of Baal and had it pulled down: its altars and images were all broken to bits, and Mattan, the priest of Baal, they put to death before the altars. And the priest put overseers over the Lord's house. 19 Then he took the captains of hundreds, and the Carians, and the armed men, and all the people of the land; and they came down with the king from the house of the Lord, through the doorway of the armed men, to the king's house. And he took his place on the seat of the kings. 20 So all the people of the land were glad, and the town was quiet; and they had put Athaliah to death with the sword at the king's house. 21 And Jehoash was seven years old when he became king.

Matthew Henry's Commentary on 2 Kings 11:17-21

Commentary on 2 Kings 11:17-21

(Read 2 Kings 11:17-21)

King and people would cleave most firmly to each other, when both had joined themselves to the Lord. It is well with a people, when all the changes that pass over them help to revive, strengthen, and advance the interests of religion among them. Covenants are of use, both to remind us of, and bind us to, the duties already binding on us. They immediately abolished idolatry; and, pursuant to the covenant with one another, they expressed mutual readiness to help each other. The people rejoiced, and Jerusalem was quiet. The way for people to be joyful and at peace, is to engage fully in the service of God; for the voice of joy and thanksgiving is in the dwellings of the righteous, but there is no peace for the wicked.