16 Then Jehoiada made a covenant between himself and the king and the people that they would be the Lord ’s people. 17 And all the people went over to the temple of Baal and tore it down. They demolished the altars and smashed the idols, and they killed Mattan the priest of Baal in front of the altars. 18 Jehoiada now put the priests and Levites in charge of the Temple of the Lord , following all the directions given by David. He also commanded them to present burnt offerings to the Lord , as prescribed by the Law of Moses, and to sing and rejoice as David had instructed. 19 He also stationed gatekeepers at the gates of the Lord ’s Temple to keep out those who for any reason were ceremonially unclean. 20 Then the commanders, nobles, rulers, and all the people of the land escorted the king from the Temple of the Lord . They went through the upper gate and into the palace, and they seated the king on the royal throne. 21 So all the people of the land rejoiced, and the city was peaceful because Athaliah had been killed.