1 Seven years later, Jehoiada mustered up some courage and made a deal with the officers who commanded units of hundreds of soldiers, including Jehoram's son Azariah, Jehochanan's son Ishmael, Obed's son Azariah, Adaiah's son Maaseiah, and Zichri's son Elishaphat. 2 They traveled throughout Judah and gathered together the descendants of Levi from all the cities of Judah, along with the Israeli family leaders.
3 Everybody went to Jerusalem, and the whole group made a covenant with the king in God's Temple, where Jehoiada addressed them: 4 "Look! The king's son is going to rule, just as the LORD promised David's descendants. So here's what you'll need to do: One third of you priests and descendants of Levi who are on duty during the Sabbath will serve as guards at the temple gates. 5 Another third of you priests and descendants of Levi will take your places in the royal palace, while another third of you priests and descendants of Levi will stand near the Foundation Gate. The rest of you will remain in the courtyard of the LORD's Temple. 6 Nobody is to enter the LORD's Temple except for the priests and descendants of Levi who are on duty. They may enter because they are ceremonially holy, but all the rest of the people must observe the LORD's instructions. 7 The descendants of Levi will surround the king, brandishing weapons in their hands, and anybody who enters the Temple will be killed. Stay near the king wherever he enters and leaves."
8 What Jehoiada the priest ordered is precisely what the descendants of Levi and all of Judah did. Each of them took the men who were on duty on the Sabbath as well as those who were off duty. Jehoiada the priest did not release the divisions from service, 9 and Jehoiada the priest issued the spears and shields that King David had placed in storage in God's Temple to the officers in charge of the units of hundreds. 10 He set the rest of the people to serve as guards for the king, and each one brandished weapons in his hand, from the south side of the Temple to the north side of the Temple, around the altar, and surrounding the palace.
11 Then he brought out the king's son, put a crown on him, and presented him with the Testimony,
12 When Athaliah heard all the commotion of the people running around and praising the king, she went straight to the LORD's Temple to confront the people. 13 She looked around, and there was the king, standing by his pillar at the gate, accompanied by officers and trumpeters who stood beside the king, along with all the people of the land rejoicing and sounding trumpets while singers lead the celebration with their musical instruments. Athaliah tore her robes and yelled "Treason! Treason!"
14 But Jehoiada the priest summoned the captains of hundreds who had been appointed in charge over the army and ordered them, "Bring her out between the ranks, and execute anyone who follows her." The priest also told them, "Don't execute her in the LORD's Temple." 15 So they arrested her when she arrived at the entrance to the Horse Gate near the royal palace, and then they executed her there.
16 After this, Jehoiada drew up a covenant between himself as an individual with all the people, and between himself as king, that they would be the LORD's people. 17 Then all the people went to the temple of Baal, broke its altars and idols to pieces, and executed Mattan, the priest of Baal, in front of the altars.
18 Jehoiada also placed the offices of the LORD's Temple under the authority of the Levitical priests whom David had assigned over the LORD's Temple, just as is required by the Law of Moses, to offer the LORD's burnt offerings with joy and singing, just as David had ordered. 19 Jehoiada also stationed inspectors at the LORD's Temple so that no one would enter who was ritually unclean in any manner. 20 He also took the captains of hundreds, the nobles, the people's governors, and all the people of the land, and they all marched with the king from the LORD's Temple through the upper gate to the royal palace, where they installed the king on his royal throne. 21 There all of the people of the land rejoiced and the city stayed quiet, because they had executed Athaliah with a sword.