2But Jehosheba daughter of King Joram, the sister of Ahaziah, took Joash son of Ahaziah and stole him away from among the sons of the king who were being murdered. She put him and his nurse in a bedroom to hide him from Athaliah, and he was not killed.
4Then in the seventh year, Jehoiada sent for the commanders of hundreds, the Carites, and the guards, and had them brought into the house of the LORD. There he made a covenant with them and put them under oath. He showed them the king’s son
8You must surround the king with weapons in hand, and anyone who approaches the ranks must be put to death. You must stay close to the king wherever he goes.”
9So the commanders of hundreds did everything that Jehoiada the priest had ordered. Each of them took his men—those coming on duty on the Sabbath and those going off duty—and came to Jehoiada the priest.
12Then Jehoiada brought out the king’s son, put the crown on him, presented him with the Testimony, and proclaimed him king. They anointed him, and the people clapped their hands and declared, “Long live the king!”
14And she looked out and saw the king standing by the pillar, according to the custom. The officers and trumpeters were beside the king, and all the people of the land were rejoicing and blowing trumpets. Then Athaliah tore her clothes and screamed, “Treason! Treason!”
15And Jehoiada the priest ordered the commanders of hundreds in charge of the army, “Bring her out between the ranks, and put to the sword anyone who follows her.” For the priest had said, “She must not be put to death in the house of the LORD.”
17Then Jehoiada made a covenant between the LORD and the king and the people that they would be the LORD’s people. He also made a covenant between the king and the people.
18So all the people of the land went to the temple of Baal and tore it down. They smashed the altars and idols to pieces, and they killed Mattan the priest of Baal in front of the altars. And Jehoiada the priest posted guards for the house of the LORD.
19He took with him the commanders of hundreds, the Carites, the guards, and all the people of the land, and they brought the king down from the house of the LORD and entered the royal palace by way of the Gate of the Guards. Then Joash took his seat on the royal throne,