23:16 Jehoiada then drew up a covenant stipulating that he, all the people, and the king should be loyal to the Lord. 23:17 All the people went and demolished the temple of Baal. They smashed its altars and idols. They killed Mattan the priest of Baal in front of the altars. 23:18 Jehoiada then assigned the duties of the Lord’s temple to the priests, the Levites whom David had assigned to the Lord’s temple. They were responsible for offering burnt sacrifices to the Lord with joy and music, according to the law of Moses and the edict of David. 23:19 He posted guards at the gates of the Lord’s temple, so no one who was ceremonially unclean in any way could enter. 23:20 He summoned the officers of the units of hundreds, the nobles, the rulers of the people, and all the people of land, and he then led the king down from the Lord’s temple. They entered the royal palace through the Upper Gate and seated the king on the royal throne. 23:21 All the people of the land celebrated, for the city had rest now that they had killed Athaliah.