1 And in the seventh year Jehoiada strengthened himself and took the captains of hundreds, even Azariah the son of Jeroham, Ishmael the son of Jehohanan, Azariah the son of Obed, Maaseiah the son of Adaiah, and Elishaphat the son of Zichri, into covenant with him. 2 And they went about in Judah and gathered the Levites out of all the cities of Judah, and the chief of the fathers of Israel, and they came to Jerusalem. 3 And all the congregation made a covenant with the king in the house of God. And he said to them, "Behold, the king's son shall reign as the LORD has said of the sons of David. 4 This is the thing that you shall do: a third part of you entering on the sabbath, of the priests and of the Levites, shall be gatekeepers of the doors, 5 A third part shall be at the king's house, and a third part at the gate of the foundation. And all the people shall be in the courts of the house of the LORD. 6 But let no one come into the house of the LORD, except the priests and those who minister of the Levites. They shall go in, for they are holy, but all the people shall keep the watch of the LORD. 7 And the Levites shall encompass the king, each with his weapons in his hand. And whoever else comes into the house, he shall be put to death. But be with the king when he comes in and when he goes out."
8 So the Levites and all Judah did according to all things that Jehoiada the priest had commanded, and each took his men who were to come in on the sabbath with those who were to go out on the sabbath, for Jehoiada the priest did not dismiss the courses. 9 Moreover, Jehoiada the priest delivered to the captains of hundreds spears, bucklers, and shields, which had been king David's, which were in the house of God. 10 And he set all the people, each having his weapon in his hand, from the right side of the temple to the left side of the temple, along by the altar and the temple, by the king on all sides. 11 Then they brought out the king's son, put the crown upon him, gave him the testimony, and made him king. And Jehoiada and his sons anointed him and said, "God save the king."
12 Now when Athaliah heard the noise of the people running and praising the king, she came to the people into the house of the LORD. 13 And she looked, and behold, the king stood at his pillar at the entrance, and the princes and the trumpets by the king. And all the people of the land rejoiced and sounded with trumpets, and the singers with instruments of music were leading the singing of praise. Then Athaliah rent her clothes and said, "Treason, treason." 14 Then Jehoiada the priest brought out the captains of hundreds who were set over the host and said to them, "Bring her forth outside the ranges. And whoever follows her, let him be slain with the sword." For the priest said, "Do not slay her in the house of the LORD." 15 So they laid hands on her, and when she had come to the entrance of the horse gate by the king's house, they slew her there.
16 And Jehoiada made a covenant between himself, between all the people, and between the king, that they should be the LORD'S people. 17 Then all the people went to the house of Baal, broke it down, broke his altars and his images in pieces, and slew Mattan the priest of Baal before the altars. 18 Also Jehoiada appointed the offices of the house of the LORD by the hand of the priests the Levites, whom David had distributed in the house of the LORD to offer the burnt-offerings of the LORD, as it is written in the law of Moses, with rejoicing and with singing, as it was ordained by David. 19 And he set the gatekeepers at the gates of the house of the LORD so that no one who was unclean in anything should enter. 20 And he took the captains of hundreds, the nobles, the governors of the people, and all the people of the land, and brought the king down from the house of the LORD. And they came through the high gate into the king's house and set the king upon the throne of the kingdom. 21 And all the people of the land rejoiced and the city was quiet after they had slain Athaliah with the sword.