18 Jehoiada assigned the priests and Levites their duties at the temple, just as David had done. They were in charge of offering sacrifices to the Lord according to the Law of Moses, and they were responsible for leading the celebrations with singing.
19 Jehoiada ordered the guards at the temple gates to keep out anyone who was unclean.
20 Finally, Jehoiada called together the army commanders, the most important citizens of Judah, and the government officials. The crowd of people followed them as they led Joash from the temple, through the Upper Gate, and into the palace, where he took his place as king of Judah.
21 Everyone celebrated because Athaliah had been killed and Jerusalem was peaceful again.